Skip to content

Commit

Permalink
feat(config): remove deprecated includeSrc/excludeSrc
Browse files Browse the repository at this point in the history
Use include/exclude in the tsconfig.json instead.
  • Loading branch information
adamdbradley committed Aug 5, 2020
1 parent 75dfebb commit c18cb1f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
12 changes: 1 addition & 11 deletions 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';
Expand Down Expand Up @@ -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,
Expand Down
14 changes: 0 additions & 14 deletions src/declarations/stencil-public-compiler.ts
Expand Up @@ -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.
Expand Down Expand Up @@ -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[];
Expand Down

0 comments on commit c18cb1f

Please sign in to comment.