@servicetitan/startup 26.0.0 → 26.0.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/create-package.js +14 -5
- package/dist/__mocks__/index.js +31 -18
- package/dist/cli/commands/build.js +83 -34
- package/dist/cli/commands/bundle-package.js +91 -39
- package/dist/cli/commands/eslint.js +74 -31
- package/dist/cli/commands/get-command.js +16 -16
- package/dist/cli/commands/get-user-commands.js +9 -9
- package/dist/cli/commands/index.js +45 -32
- package/dist/cli/commands/init.js +93 -42
- package/dist/cli/commands/install.js +77 -32
- package/dist/cli/commands/kendo-ui-license.js +86 -39
- package/dist/cli/commands/mfe-publish.js +176 -79
- package/dist/cli/commands/prepare-package.js +84 -35
- package/dist/cli/commands/start.js +107 -58
- package/dist/cli/commands/styles-check.js +63 -35
- package/dist/cli/commands/tests.js +77 -32
- package/dist/cli/commands/types.d.ts +1 -1
- package/dist/cli/commands/types.js +3 -3
- package/dist/cli/index.js +23 -18
- package/dist/cli/utils/assets-copy.js +52 -23
- package/dist/cli/utils/bundle.js +130 -56
- package/dist/cli/utils/cli-git.js +4 -4
- package/dist/cli/utils/cli-npm.js +73 -27
- package/dist/cli/utils/cli-os.js +14 -15
- package/dist/cli/utils/compile-less.d.ts +1 -1
- package/dist/cli/utils/compile-less.js +42 -18
- package/dist/cli/utils/compile-sass.d.ts +1 -1
- package/dist/cli/utils/compile-sass.js +41 -17
- package/dist/cli/utils/eslint.js +70 -34
- package/dist/cli/utils/get-module-type.js +17 -11
- package/dist/cli/utils/index.js +42 -29
- package/dist/cli/utils/is-module-installed.d.ts +1 -1
- package/dist/cli/utils/is-module-installed.js +4 -5
- package/dist/cli/utils/lerna-exec.js +52 -20
- package/dist/cli/utils/maybe-create-git-folder.d.ts +1 -1
- package/dist/cli/utils/maybe-create-git-folder.js +9 -7
- package/dist/cli/utils/publish.d.ts +1 -1
- package/dist/cli/utils/publish.js +3 -3
- package/dist/cli/utils/set-node-options.js +28 -12
- package/dist/cli/utils/styles-copy.js +52 -23
- package/dist/cli/utils/tcm.js +60 -34
- package/dist/cli/utils/tsc.js +46 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/jest/index.js +4 -4
- package/dist/utils/debug.d.ts +1 -1
- package/dist/utils/debug.js +9 -7
- package/dist/utils/find-packages.d.ts +1 -1
- package/dist/utils/find-packages.js +37 -20
- package/dist/utils/get-destination-folders.js +27 -22
- package/dist/utils/get-folders.js +15 -9
- package/dist/utils/get-jest-config.js +78 -36
- package/dist/utils/get-package-data.d.ts +5 -2
- package/dist/utils/get-package-data.js +14 -8
- package/dist/utils/get-package-name.d.ts +1 -1
- package/dist/utils/get-package-name.js +10 -8
- package/dist/utils/get-packages.js +37 -19
- package/dist/utils/get-startup-version.d.ts +1 -1
- package/dist/utils/get-startup-version.js +16 -9
- package/dist/utils/get-tsconfig.d.ts +1 -1
- package/dist/utils/get-tsconfig.js +13 -9
- package/dist/utils/index.js +44 -31
- package/dist/utils/load-shared-dependencies.d.ts +5 -2
- package/dist/utils/load-shared-dependencies.js +12 -6
- package/dist/utils/log.d.ts +5 -2
- package/dist/utils/log.js +13 -12
- package/dist/utils/read-json.d.ts +1 -1
- package/dist/utils/read-json.js +10 -9
- package/dist/utils/to-array.d.ts +1 -1
- package/dist/utils/to-array.js +3 -3
- package/dist/webpack/__mocks__/file-rules.d.ts +1 -1
- package/dist/webpack/__mocks__/file-rules.js +3 -3
- package/dist/webpack/__mocks__/index.d.ts +1 -1
- package/dist/webpack/__mocks__/index.js +32 -19
- package/dist/webpack/configs/amd-config.js +3 -3
- package/dist/webpack/configs/cache-config.js +5 -5
- package/dist/webpack/configs/dev-server-config.js +38 -20
- package/dist/webpack/configs/dev-server-config.js.map +1 -1
- package/dist/webpack/configs/devtool-config.js +4 -5
- package/dist/webpack/configs/entry.config.js +4 -4
- package/dist/webpack/configs/externals-config.js +9 -7
- package/dist/webpack/configs/index.js +43 -30
- package/dist/webpack/configs/loaders/css-loader.js +15 -9
- package/dist/webpack/configs/loaders/index.js +34 -21
- package/dist/webpack/configs/loaders/less-loader.d.ts +1 -1
- package/dist/webpack/configs/loaders/less-loader.js +3 -3
- package/dist/webpack/configs/loaders/style-loader.js +11 -8
- package/dist/webpack/configs/loaders/types.d.ts +1 -1
- package/dist/webpack/configs/loaders/types.js +3 -3
- package/dist/webpack/configs/module-config.js +4 -4
- package/dist/webpack/configs/optimization-config.js +3 -3
- package/dist/webpack/configs/output-config.js +20 -9
- package/dist/webpack/configs/plugins/assets-manifest-plugin.js +15 -10
- package/dist/webpack/configs/plugins/bundle-analyser-plugin.js +10 -8
- package/dist/webpack/configs/plugins/define-exposed-dependencies-plugin.js +21 -14
- package/dist/webpack/configs/plugins/define-web-component-name-plugin.js +4 -4
- package/dist/webpack/configs/plugins/filter-warnings-plugin.js +3 -3
- package/dist/webpack/configs/plugins/html-plugin.js +43 -22
- package/dist/webpack/configs/plugins/ignore-plugin/check-resource.d.ts +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/check-resource.js +5 -6
- package/dist/webpack/configs/plugins/ignore-plugin/ignore-plugin.js +5 -5
- package/dist/webpack/configs/plugins/ignore-plugin/index.js +31 -18
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-peer-dependency.d.ts +1 -1
- package/dist/webpack/configs/plugins/ignore-plugin/is-optional-peer-dependency.js +6 -4
- package/dist/webpack/configs/plugins/index.js +42 -29
- package/dist/webpack/configs/plugins/mini-css-extract-plugin.js +20 -11
- package/dist/webpack/configs/plugins/moment-locales-plugin.js +9 -7
- package/dist/webpack/configs/plugins/provide-react-plugin.js +4 -4
- package/dist/webpack/configs/plugins/ts-checker-plugin.js +31 -23
- package/dist/webpack/configs/plugins/virtual-modules-plugin.js +14 -10
- package/dist/webpack/configs/plugins-config.js +4 -4
- package/dist/webpack/configs/resolve-config.js +3 -3
- package/dist/webpack/configs/rules/css-rules.js +25 -16
- package/dist/webpack/configs/rules/font-rules.js +3 -3
- package/dist/webpack/configs/rules/image-rules.js +3 -3
- package/dist/webpack/configs/rules/index.js +38 -25
- package/dist/webpack/configs/rules/js-rules.js +3 -3
- package/dist/webpack/configs/rules/less-rules.js +9 -5
- package/dist/webpack/configs/rules/scss-rules.js +9 -5
- package/dist/webpack/configs/rules/svg-rules.js +3 -3
- package/dist/webpack/configs/rules/tsx-rules.js +3 -3
- package/dist/webpack/configs/rules-config.js +8 -6
- package/dist/webpack/configs/stats-config.js +3 -3
- package/dist/webpack/configs/types.js +3 -3
- package/dist/webpack/configs/utils/generate-metadata.js +21 -14
- package/dist/webpack/configs/utils/get-web-components-version.js +16 -9
- package/dist/webpack/configs/utils/index.js +31 -18
- package/dist/webpack/create-webpack-config.js +70 -30
- package/dist/webpack/index.js +32 -19
- package/dist/webpack/loaders/expose-loader/index.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/index.js +11 -5
- package/dist/webpack/loaders/expose-loader/runtime/get-global-this.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/runtime/get-global-this.js +3 -4
- package/dist/webpack/loaders/expose-loader/utils/contextify-request.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/contextify-request.js +23 -21
- package/dist/webpack/loaders/expose-loader/utils/get-new-user-request.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/get-new-user-request.js +18 -9
- package/dist/webpack/loaders/expose-loader/utils/index.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/index.js +33 -20
- package/dist/webpack/loaders/expose-loader/utils/stringify-request.d.ts +1 -1
- package/dist/webpack/loaders/expose-loader/utils/stringify-request.js +23 -19
- package/dist/webpack/types.d.ts +1 -1
- package/dist/webpack/types.js +3 -3
- package/dist/webpack/utils/bundle.d.ts +1 -1
- package/dist/webpack/utils/bundle.js +3 -3
- package/dist/webpack/utils/feature-cohort.js +6 -6
- package/dist/webpack/utils/get-caller-filename.d.ts +1 -1
- package/dist/webpack/utils/get-caller-filename.js +4 -5
- package/dist/webpack/utils/hash-mod.d.ts +1 -1
- package/dist/webpack/utils/hash-mod.js +3 -3
- package/dist/webpack/utils/index.js +34 -21
- package/dist/webpack/utils/split-by-entry.d.ts +6 -2
- package/dist/webpack/utils/split-by-entry.js +4 -5
- package/dist/webpack/utils/testing/compile.d.ts +1 -1
- package/dist/webpack/utils/testing/compile.js +3 -3
- package/dist/webpack/utils/testing/execute.d.ts +11 -5
- package/dist/webpack/utils/testing/execute.js +17 -10
- package/dist/webpack/utils/testing/get-compiler.d.ts +4 -2
- package/dist/webpack/utils/testing/get-compiler.js +37 -30
- package/dist/webpack/utils/testing/get-errors.d.ts +1 -1
- package/dist/webpack/utils/testing/get-errors.js +4 -4
- package/dist/webpack/utils/testing/get-module-source.d.ts +1 -1
- package/dist/webpack/utils/testing/get-module-source.js +9 -4
- package/dist/webpack/utils/testing/get-warnings.d.ts +1 -1
- package/dist/webpack/utils/testing/get-warnings.js +4 -4
- package/dist/webpack/utils/testing/index.d.ts +16 -6
- package/dist/webpack/utils/testing/index.js +12 -12
- package/dist/webpack/utils/testing/normalize-errors.d.ts +1 -1
- package/dist/webpack/utils/testing/normalize-errors.js +3 -3
- package/dist/webpack/utils/testing/read-asset.d.ts +1 -1
- package/dist/webpack/utils/testing/read-asset.js +12 -10
- package/dist/webpack/utils/testing/read-assets.d.ts +1 -1
- package/dist/webpack/utils/testing/read-assets.js +4 -4
- package/package.json +7 -8
- package/src/index.ts +1 -0
- package/src/webpack/__tests__/create-webpack-config.test.ts +4 -0
- package/src/webpack/configs/dev-server-config.ts +6 -1
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.getModuleSource = void 0;
|
|
4
4
|
function getModuleSource(name, stats) {
|
|
5
5
|
var _a;
|
|
6
6
|
const { modules } = stats.toJson({ source: true });
|
|
7
7
|
if (modules) {
|
|
8
|
-
return (_a = modules.find(m => {
|
|
8
|
+
return (_a = modules.find(m => {
|
|
9
|
+
var _a;
|
|
10
|
+
return (_a = m.name) === null || _a === void 0 ? void 0 : _a.endsWith(name);
|
|
11
|
+
})) === null || _a === void 0
|
|
12
|
+
? void 0
|
|
13
|
+
: _a.source;
|
|
9
14
|
}
|
|
10
15
|
return undefined;
|
|
11
16
|
}
|
|
12
17
|
exports.getModuleSource = getModuleSource;
|
|
13
|
-
//# sourceMappingURL=get-module-source.js.map
|
|
18
|
+
//# sourceMappingURL=get-module-source.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.getWarnings = void 0;
|
|
4
|
-
const normalize_errors_1 = require(
|
|
4
|
+
const normalize_errors_1 = require('./normalize-errors');
|
|
5
5
|
function getWarnings(stats) {
|
|
6
6
|
return (0, normalize_errors_1.normalizeErrors)(stats.compilation.warnings);
|
|
7
7
|
}
|
|
8
8
|
exports.getWarnings = getWarnings;
|
|
9
|
-
//# sourceMappingURL=get-warnings.js.map
|
|
9
|
+
//# sourceMappingURL=get-warnings.js.map
|
|
@@ -7,11 +7,21 @@ import { readAsset } from './read-asset';
|
|
|
7
7
|
import { readAssets } from './read-assets';
|
|
8
8
|
export declare function getUtils(cwd: string): {
|
|
9
9
|
compile: typeof compile;
|
|
10
|
-
execute: (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
execute: (
|
|
11
|
+
code: string,
|
|
12
|
+
{
|
|
13
|
+
before,
|
|
14
|
+
after,
|
|
15
|
+
}?: {
|
|
16
|
+
before: string;
|
|
17
|
+
after: string;
|
|
18
|
+
}
|
|
19
|
+
) => any;
|
|
20
|
+
getCompiler: (
|
|
21
|
+
entry: string,
|
|
22
|
+
loaderOptions?: {},
|
|
23
|
+
config?: import('webpack').Configuration
|
|
24
|
+
) => import('webpack').Compiler;
|
|
15
25
|
getErrors: typeof getErrors;
|
|
16
26
|
getModuleSource: typeof getModuleSource;
|
|
17
27
|
getWarnings: typeof getWarnings;
|
|
@@ -19,4 +29,4 @@ export declare function getUtils(cwd: string): {
|
|
|
19
29
|
readAsset: typeof readAsset;
|
|
20
30
|
readAssets: typeof readAssets;
|
|
21
31
|
};
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
32
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.getUtils = void 0;
|
|
4
|
-
const compile_1 = require(
|
|
5
|
-
const execute_1 = require(
|
|
6
|
-
const get_compiler_1 = require(
|
|
7
|
-
const get_errors_1 = require(
|
|
8
|
-
const get_module_source_1 = require(
|
|
9
|
-
const get_warnings_1 = require(
|
|
10
|
-
const normalize_errors_1 = require(
|
|
11
|
-
const read_asset_1 = require(
|
|
12
|
-
const read_assets_1 = require(
|
|
4
|
+
const compile_1 = require('./compile');
|
|
5
|
+
const execute_1 = require('./execute');
|
|
6
|
+
const get_compiler_1 = require('./get-compiler');
|
|
7
|
+
const get_errors_1 = require('./get-errors');
|
|
8
|
+
const get_module_source_1 = require('./get-module-source');
|
|
9
|
+
const get_warnings_1 = require('./get-warnings');
|
|
10
|
+
const normalize_errors_1 = require('./normalize-errors');
|
|
11
|
+
const read_asset_1 = require('./read-asset');
|
|
12
|
+
const read_assets_1 = require('./read-assets');
|
|
13
13
|
function getUtils(cwd) {
|
|
14
14
|
return {
|
|
15
15
|
compile: compile_1.compile,
|
|
@@ -24,4 +24,4 @@ function getUtils(cwd) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
exports.getUtils = getUtils;
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.normalizeErrors = void 0;
|
|
4
4
|
function removeCWD(str) {
|
|
5
5
|
const isWin = process.platform === 'win32';
|
|
@@ -15,4 +15,4 @@ function normalizeErrors(errors) {
|
|
|
15
15
|
return errors.map(error => removeCWD(error.message.split('\n').slice(0, 2).join('\n')));
|
|
16
16
|
}
|
|
17
17
|
exports.normalizeErrors = normalizeErrors;
|
|
18
|
-
//# sourceMappingURL=normalize-errors.js.map
|
|
18
|
+
//# sourceMappingURL=normalize-errors.js.map
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
var __importDefault =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __importDefault =
|
|
3
|
+
(this && this.__importDefault) ||
|
|
4
|
+
function (mod) {
|
|
5
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
6
|
+
};
|
|
7
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
6
8
|
exports.readAsset = void 0;
|
|
7
|
-
const path_1 = __importDefault(require(
|
|
9
|
+
const path_1 = __importDefault(require('path'));
|
|
8
10
|
function readAsset(asset, compiler, stats) {
|
|
9
11
|
var _a;
|
|
10
12
|
const usedFs = compiler.outputFileSystem;
|
|
11
|
-
const outputPath =
|
|
13
|
+
const outputPath =
|
|
14
|
+
(_a = stats.compilation.outputOptions.path) !== null && _a !== void 0 ? _a : '';
|
|
12
15
|
let data = '';
|
|
13
16
|
let targetFile = asset;
|
|
14
17
|
const queryStringIdx = targetFile.indexOf('?');
|
|
@@ -17,11 +20,10 @@ function readAsset(asset, compiler, stats) {
|
|
|
17
20
|
}
|
|
18
21
|
try {
|
|
19
22
|
data = usedFs.readFileSync(path_1.default.join(outputPath, targetFile)).toString();
|
|
20
|
-
}
|
|
21
|
-
catch (error) {
|
|
23
|
+
} catch (error) {
|
|
22
24
|
data = String(error);
|
|
23
25
|
}
|
|
24
26
|
return data;
|
|
25
27
|
}
|
|
26
28
|
exports.readAsset = readAsset;
|
|
27
|
-
//# sourceMappingURL=read-asset.js.map
|
|
29
|
+
//# sourceMappingURL=read-asset.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.readAssets = void 0;
|
|
4
|
-
const read_asset_1 = require(
|
|
4
|
+
const read_asset_1 = require('./read-asset');
|
|
5
5
|
function readAssets(compiler, stats) {
|
|
6
6
|
const assets = {};
|
|
7
7
|
Object.keys(stats.compilation.assets).forEach(asset => {
|
|
@@ -10,4 +10,4 @@ function readAssets(compiler, stats) {
|
|
|
10
10
|
return assets;
|
|
11
11
|
}
|
|
12
12
|
exports.readAssets = readAssets;
|
|
13
|
-
//# sourceMappingURL=read-assets.js.map
|
|
13
|
+
//# sourceMappingURL=read-assets.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/startup",
|
|
3
|
-
"version": "26.0.0",
|
|
3
|
+
"version": "26.0.2-canary.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/startup",
|
|
6
6
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@babel/preset-env": "~7.25.3",
|
|
37
37
|
"@jest/core": "~29.7.0",
|
|
38
38
|
"@jest/types": "~29.6.3",
|
|
39
|
-
"@servicetitan/eslint-config": "26.0.
|
|
40
|
-
"@servicetitan/stylelint-config": "26.0.
|
|
39
|
+
"@servicetitan/eslint-config": "26.0.2",
|
|
40
|
+
"@servicetitan/stylelint-config": "26.0.2",
|
|
41
41
|
"@svgr/webpack": "^8.1.0",
|
|
42
42
|
"@swc/core": "1.6.13",
|
|
43
43
|
"@types/debug": "^4.1.12",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"jest-circus": "~29.7.0",
|
|
60
60
|
"jest-environment-jsdom": "^29.7.0",
|
|
61
61
|
"jest-fetch-mock": "~3.0.3",
|
|
62
|
-
"lerna": "~8.1.
|
|
62
|
+
"lerna": "~8.1.8",
|
|
63
63
|
"less": "~4.2.0",
|
|
64
64
|
"less-loader": "~12.2.0",
|
|
65
65
|
"less-plugin-npm-import": "~2.1.0",
|
|
66
|
-
"memfs": "~4.
|
|
66
|
+
"memfs": "~4.11.1",
|
|
67
67
|
"mini-css-extract-plugin": "~2.9.0",
|
|
68
68
|
"moment": "^2.30.1",
|
|
69
69
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"style-loader": "~4.0.0",
|
|
79
79
|
"stylelint": "~14.16.1",
|
|
80
80
|
"swc-loader": "0.2.6",
|
|
81
|
-
"ts-jest": "~29.2.
|
|
81
|
+
"ts-jest": "~29.2.4",
|
|
82
82
|
"ts-loader": "~9.5.1",
|
|
83
83
|
"ts-node": "~10.9.2",
|
|
84
84
|
"typed-css-modules": "~0.9.1",
|
|
@@ -103,6 +103,5 @@
|
|
|
103
103
|
},
|
|
104
104
|
"cli": {
|
|
105
105
|
"webpack": false
|
|
106
|
-
}
|
|
107
|
-
"gitHead": "c19b559c2183cbd7f74814b7b913f3343270756a"
|
|
106
|
+
}
|
|
108
107
|
}
|
package/src/index.ts
CHANGED
|
@@ -298,6 +298,10 @@ describe(`[startup] ${createWebpackConfig.name}`, () => {
|
|
|
298
298
|
});
|
|
299
299
|
});
|
|
300
300
|
|
|
301
|
+
test('configures "watchOptions"', () => {
|
|
302
|
+
expect(subject().watchOptions).toEqual({});
|
|
303
|
+
});
|
|
304
|
+
|
|
301
305
|
describe('with subordinate TSC packages', () => {
|
|
302
306
|
beforeEach(() => {
|
|
303
307
|
packages = [
|
|
@@ -74,7 +74,12 @@ function watchOptionsConfig(): WatchOptionsConfig {
|
|
|
74
74
|
.filter(({ type }) => type === PackageType.TSC)
|
|
75
75
|
.map(({ location }) => location);
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
/*
|
|
78
|
+
* NOTE: Don't return empty ignored array. It triggered a bug that caused
|
|
79
|
+
* webpack to ignore all files
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
return ignored.length ? { ignored } : {};
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
const CONTENT_BASE_DEPRECATION_WARNING = `
|