From c18cb1f608c7c4668b081b94f292d1f8af721641 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 5 Aug 2020 09:45:39 -0500 Subject: [PATCH] feat(config): remove deprecated includeSrc/excludeSrc Use include/exclude in the tsconfig.json instead. --- src/compiler/config/validate-config.ts | 12 +----------- src/declarations/stencil-public-compiler.ts | 14 -------------- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/compiler/config/validate-config.ts b/src/compiler/config/validate-config.ts index 3176530334c..c245ca0bde7 100644 --- a/src/compiler/config/validate-config.ts +++ b/src/compiler/config/validate-config.ts @@ -1,5 +1,5 @@ import { Config, ConfigBundle, Diagnostic } from '../../declarations'; -import { buildError, buildWarn, isBoolean, isNumber, isString, sortBy } from '@utils'; +import { buildError, isBoolean, isNumber, isString, sortBy } from '@utils'; import { setBooleanConfig } from './config-utils'; import { validateDevServer } from './validate-dev-server'; import { validateDistNamespace } from './validate-namespace'; @@ -121,16 +121,6 @@ export const validateConfig = (userConfig?: Config) => { setBooleanConfig(config, 'enableCache', 'cache', true); - if (config.excludeSrc) { - const warn = buildWarn(diagnostics); - warn.messageText = `"excludeSrc" is deprecated, use the "exclude" option in tsconfig.json`; - } - - if (config.includeSrc) { - const warn = buildWarn(diagnostics); - warn.messageText = `"includeSrc" is deprecated, use the "include" option in tsconfig.json`; - } - return { config, diagnostics, diff --git a/src/declarations/stencil-public-compiler.ts b/src/declarations/stencil-public-compiler.ts index f9a50e17b0b..020e2b6f908 100644 --- a/src/declarations/stencil-public-compiler.ts +++ b/src/declarations/stencil-public-compiler.ts @@ -40,16 +40,6 @@ export interface StencilConfig { */ enableCache?: boolean; - /** - * The excludeSrc config setting specifies a set of regular expressions that should be excluded - * from the build process. - * - * The defaults are meant to exclude possible test files that you would not want to include in your final build. - * - * @deprecated Use the "exclude" option in "tsconfig.json" - */ - excludeSrc?: string[]; - /** * Stencil is traditionally used to compile many components into an app, * and each component comes with its own compartmentalized styles. @@ -215,10 +205,6 @@ export interface StencilConfig { testing?: TestingConfig; maxConcurrentWorkers?: number; preamble?: string; - /** - * @deprecated Use the "include" option in "tsconfig.json" - */ - includeSrc?: string[]; rollupPlugins?: { before?: any[]; after?: any[] }; entryComponentsHint?: string[];