@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,24 +1,40 @@
|
|
|
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.devServerConfig = void 0;
|
|
7
|
-
const fs_1 = __importDefault(require(
|
|
8
|
-
const path_1 = __importDefault(require(
|
|
9
|
-
const utils_1 = require(
|
|
10
|
-
const stats_config_1 = require(
|
|
9
|
+
const fs_1 = __importDefault(require('fs'));
|
|
10
|
+
const path_1 = __importDefault(require('path'));
|
|
11
|
+
const utils_1 = require('../../utils');
|
|
12
|
+
const stats_config_1 = require('./stats-config');
|
|
11
13
|
function devServerConfig(context, overrides) {
|
|
12
14
|
if (context.isProduction) {
|
|
13
15
|
return;
|
|
14
16
|
}
|
|
15
17
|
const watchOptions = watchOptionsConfig();
|
|
16
|
-
const devServer = Object.assign(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
const devServer = Object.assign(
|
|
19
|
+
{
|
|
20
|
+
hot: false,
|
|
21
|
+
port: 8080,
|
|
22
|
+
historyApiFallback: true,
|
|
23
|
+
devMiddleware: Object.assign(
|
|
24
|
+
{ writeToDisk: true },
|
|
25
|
+
(0, stats_config_1.statsConfig)(context, overrides)
|
|
26
|
+
),
|
|
27
|
+
headers: {
|
|
28
|
+
'Access-Control-Allow-Origin': '*',
|
|
29
|
+
'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
getDevServerConfig()
|
|
33
|
+
);
|
|
20
34
|
/* istanbul ignore next: debug only */
|
|
21
|
-
utils_1.log.debug('dev-server-config', () =>
|
|
35
|
+
utils_1.log.debug('dev-server-config', () =>
|
|
36
|
+
JSON.stringify({ devServer, watchOptions }, null, 2)
|
|
37
|
+
);
|
|
22
38
|
return { devServer, watchOptions };
|
|
23
39
|
}
|
|
24
40
|
exports.devServerConfig = devServerConfig;
|
|
@@ -30,8 +46,7 @@ function getDevServerConfig() {
|
|
|
30
46
|
if (typeof result.proxy === 'string') {
|
|
31
47
|
if (fs_1.default.existsSync(result.proxy)) {
|
|
32
48
|
result.proxy = require(path_1.default.resolve(result.proxy));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
49
|
+
} else {
|
|
35
50
|
delete result.proxy;
|
|
36
51
|
}
|
|
37
52
|
}
|
|
@@ -42,8 +57,7 @@ function getDevServerConfig() {
|
|
|
42
57
|
if (typeof contentBase !== 'number') {
|
|
43
58
|
result.static = contentBase;
|
|
44
59
|
}
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
60
|
+
} else {
|
|
47
61
|
result.static = '.';
|
|
48
62
|
}
|
|
49
63
|
}
|
|
@@ -53,7 +67,11 @@ function watchOptionsConfig() {
|
|
|
53
67
|
const ignored = (0, utils_1.getPackages)({ scope: (0, utils_1.getPackageName)() })
|
|
54
68
|
.filter(({ type }) => type === utils_1.PackageType.TSC)
|
|
55
69
|
.map(({ location }) => location);
|
|
56
|
-
|
|
70
|
+
/*
|
|
71
|
+
* NOTE: Don't return empty ignored array. It triggered a bug that caused
|
|
72
|
+
* webpack to ignore all files
|
|
73
|
+
*/
|
|
74
|
+
return ignored.length ? { ignored } : {};
|
|
57
75
|
}
|
|
58
76
|
const CONTENT_BASE_DEPRECATION_WARNING = `
|
|
59
77
|
DEPRECATION WARNING: webpack.contentBase in package.json is deprecated.
|
|
@@ -61,4 +79,4 @@ const CONTENT_BASE_DEPRECATION_WARNING = `
|
|
|
61
79
|
`
|
|
62
80
|
.replace(/\n\s*/g, ' ')
|
|
63
81
|
.trim();
|
|
64
|
-
//# sourceMappingURL=dev-server-config.js.map
|
|
82
|
+
//# sourceMappingURL=dev-server-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server-config.js","sourceRoot":"","sources":["../../../src/webpack/configs/dev-server-config.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AAExB,uCAQqB;AACrB,iDAA6C;AAO7C,SAAgB,eAAe,CAAC,OAAgB,EAAE,SAAoB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AG,OAAO,CAAC,WAAW,CAAC;QACxC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC5B,WAAG,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;YAC9C,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;gBAClC,MAAM,CAAC,MAAM,GAAG,WAAW,CAAC;YAChC,CAAC;QACL,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC;QACxB,CAAC;IACL,CAAC;IAED,OAAO,gCAAK,MAAM,GAAK,OAAO,CAAC,SAAS,CAA8B,CAAC;AAC3E,CAAC;AAED,SAAS,kBAAkB;IACvB,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,EAAE,KAAK,EAAE,IAAA,sBAAc,GAAE,EAAE,CAAC;SACnD,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,KAAK,mBAAW,CAAC,GAAG,CAAC;SAC9C,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC;IAErC;;;OAGG;IAEH,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAC7C,CAAC;AAED,MAAM,gCAAgC,GAAG;;;CAGxC;KACI,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;KACtB,IAAI,EAAE,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.devtoolConfig = void 0;
|
|
4
4
|
function devtoolConfig(context, _) {
|
|
5
5
|
const { isProduction, isWebComponent } = context;
|
|
6
6
|
let devtool;
|
|
7
7
|
if (isProduction) {
|
|
8
8
|
devtool = isWebComponent ? false : 'source-map';
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
9
|
+
} else {
|
|
11
10
|
devtool = 'cheap-module-source-map';
|
|
12
11
|
}
|
|
13
12
|
return { devtool };
|
|
14
13
|
}
|
|
15
14
|
exports.devtoolConfig = devtoolConfig;
|
|
16
|
-
//# sourceMappingURL=devtool-config.js.map
|
|
15
|
+
//# sourceMappingURL=devtool-config.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.entryConfig = void 0;
|
|
4
|
-
const utils_1 = require(
|
|
4
|
+
const utils_1 = require('../utils');
|
|
5
5
|
function entryConfig(context, _) {
|
|
6
6
|
const { isExposeSharedDependencies, sharedDependencies, source } = context;
|
|
7
7
|
const entry = { main: [`./${source}/index`] };
|
|
@@ -11,4 +11,4 @@ function entryConfig(context, _) {
|
|
|
11
11
|
return { entry };
|
|
12
12
|
}
|
|
13
13
|
exports.entryConfig = entryConfig;
|
|
14
|
-
//# sourceMappingURL=entry.config.js.map
|
|
14
|
+
//# sourceMappingURL=entry.config.js.map
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.externalsConfig = void 0;
|
|
4
4
|
function externalsConfig(context, _) {
|
|
5
5
|
const { embed, name, sharedDependencies } = context;
|
|
6
6
|
if (!embed) {
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
const externals = Object.fromEntries(
|
|
10
|
-
dependency,
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const externals = Object.fromEntries(
|
|
10
|
+
Object.entries(sharedDependencies).map(([dependency, variable]) => [
|
|
11
|
+
dependency,
|
|
12
|
+
`${variable}['${name}']`,
|
|
13
|
+
])
|
|
14
|
+
);
|
|
13
15
|
return { externals };
|
|
14
16
|
}
|
|
15
17
|
exports.externalsConfig = externalsConfig;
|
|
16
|
-
//# sourceMappingURL=externals-config.js.map
|
|
18
|
+
//# sourceMappingURL=externals-config.js.map
|
|
@@ -1,30 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
__exportStar
|
|
23
|
-
__exportStar
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return m[k];
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}
|
|
18
|
+
: function (o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
});
|
|
22
|
+
var __exportStar =
|
|
23
|
+
(this && this.__exportStar) ||
|
|
24
|
+
function (m, exports) {
|
|
25
|
+
for (var p in m)
|
|
26
|
+
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
27
|
+
__createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30
|
+
__exportStar(require('./amd-config'), exports);
|
|
31
|
+
__exportStar(require('./cache-config'), exports);
|
|
32
|
+
__exportStar(require('./dev-server-config'), exports);
|
|
33
|
+
__exportStar(require('./devtool-config'), exports);
|
|
34
|
+
__exportStar(require('./entry.config'), exports);
|
|
35
|
+
__exportStar(require('./externals-config'), exports);
|
|
36
|
+
__exportStar(require('./module-config'), exports);
|
|
37
|
+
__exportStar(require('./optimization-config'), exports);
|
|
38
|
+
__exportStar(require('./output-config'), exports);
|
|
39
|
+
__exportStar(require('./plugins-config'), exports);
|
|
40
|
+
__exportStar(require('./resolve-config'), exports);
|
|
41
|
+
__exportStar(require('./stats-config'), exports);
|
|
42
|
+
__exportStar(require('./types'), exports);
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.cssLoader = void 0;
|
|
4
4
|
function cssLoader({ isProduction }, { esModule } = {}) {
|
|
5
5
|
const loader = 'css-loader';
|
|
6
6
|
return esModule
|
|
7
7
|
? {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
loader,
|
|
9
|
+
options: {
|
|
10
|
+
esModule,
|
|
11
|
+
modules: Object.assign(
|
|
12
|
+
Object.assign(
|
|
13
|
+
{},
|
|
14
|
+
isProduction ? { localIdentName: '[local]__[hash:base64:5]' } : {}
|
|
15
|
+
),
|
|
16
|
+
{ exportLocalsConvention: 'camelCaseOnly', namedExport: true }
|
|
17
|
+
),
|
|
18
|
+
},
|
|
19
|
+
}
|
|
14
20
|
: loader;
|
|
15
21
|
}
|
|
16
22
|
exports.cssLoader = cssLoader;
|
|
17
|
-
//# sourceMappingURL=css-loader.js.map
|
|
23
|
+
//# sourceMappingURL=css-loader.js.map
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
Object.defineProperty(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
var __createBinding =
|
|
3
|
+
(this && this.__createBinding) ||
|
|
4
|
+
(Object.create
|
|
5
|
+
? function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return m[k];
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}
|
|
18
|
+
: function (o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
});
|
|
22
|
+
var __exportStar =
|
|
23
|
+
(this && this.__exportStar) ||
|
|
24
|
+
function (m, exports) {
|
|
25
|
+
for (var p in m)
|
|
26
|
+
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
27
|
+
__createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
30
|
+
__exportStar(require('./css-loader'), exports);
|
|
31
|
+
__exportStar(require('./less-loader'), exports);
|
|
32
|
+
__exportStar(require('./style-loader'), exports);
|
|
33
|
+
__exportStar(require('./types'), exports);
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.lessLoader = void 0;
|
|
4
4
|
function lessLoader() {
|
|
5
5
|
return { loader: 'less-loader', options: { lessOptions: { math: 'always' } } };
|
|
6
6
|
}
|
|
7
7
|
exports.lessLoader = lessLoader;
|
|
8
|
-
//# sourceMappingURL=less-loader.js.map
|
|
8
|
+
//# sourceMappingURL=less-loader.js.map
|
|
@@ -1,13 +1,16 @@
|
|
|
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.styleLoader = void 0;
|
|
7
|
-
const mini_css_extract_plugin_1 = __importDefault(require(
|
|
9
|
+
const mini_css_extract_plugin_1 = __importDefault(require('mini-css-extract-plugin'));
|
|
8
10
|
function styleLoader({ isProduction, isWebComponent }, { esModule } = {}) {
|
|
9
|
-
const loader =
|
|
11
|
+
const loader =
|
|
12
|
+
isProduction || isWebComponent ? mini_css_extract_plugin_1.default.loader : 'style-loader';
|
|
10
13
|
return esModule ? { loader, options: { esModule } } : loader;
|
|
11
14
|
}
|
|
12
15
|
exports.styleLoader = styleLoader;
|
|
13
|
-
//# sourceMappingURL=style-loader.js.map
|
|
16
|
+
//# sourceMappingURL=style-loader.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
3
|
-
//# sourceMappingURL=types.js.map
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.moduleConfig = void 0;
|
|
4
|
-
const rules_config_1 = require(
|
|
4
|
+
const rules_config_1 = require('./rules-config');
|
|
5
5
|
function moduleConfig(context, overrides) {
|
|
6
6
|
const module = Object.assign({}, (0, rules_config_1.rulesConfig)(context, overrides));
|
|
7
7
|
return { module };
|
|
8
8
|
}
|
|
9
9
|
exports.moduleConfig = moduleConfig;
|
|
10
|
-
//# sourceMappingURL=module-config.js.map
|
|
10
|
+
//# sourceMappingURL=module-config.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.optimizationConfig = void 0;
|
|
4
4
|
function optimizationConfig(context, _) {
|
|
5
5
|
const { isExposeSharedDependencies, isProduction, isWebComponent } = context;
|
|
@@ -60,4 +60,4 @@ function optimizationConfig(context, _) {
|
|
|
60
60
|
return { optimization };
|
|
61
61
|
}
|
|
62
62
|
exports.optimizationConfig = optimizationConfig;
|
|
63
|
-
//# sourceMappingURL=optimization-config.js.map
|
|
63
|
+
//# sourceMappingURL=optimization-config.js.map
|
|
@@ -1,23 +1,34 @@
|
|
|
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.outputConfig = void 0;
|
|
7
|
-
const path_1 = __importDefault(require(
|
|
9
|
+
const path_1 = __importDefault(require('path'));
|
|
8
10
|
function outputConfig(context, _) {
|
|
9
11
|
const { destination, embed, isProduction, isWebComponent } = context;
|
|
10
12
|
const output = {
|
|
11
13
|
filename: '[name].bundle.js',
|
|
12
14
|
path: isWebComponent
|
|
13
|
-
? path_1.default.join(
|
|
15
|
+
? path_1.default.join(
|
|
16
|
+
process.cwd(),
|
|
17
|
+
`${destination}/bundle/${embed ? 'light' : 'full'}`
|
|
18
|
+
)
|
|
14
19
|
: path_1.default.join(process.cwd(), `${destination}/bundle`),
|
|
15
20
|
};
|
|
16
21
|
if (isProduction) {
|
|
17
22
|
const cdnPath = process.env.CLIENT_CDN_PATH;
|
|
18
|
-
Object.assign(
|
|
23
|
+
Object.assign(
|
|
24
|
+
output,
|
|
25
|
+
Object.assign(
|
|
26
|
+
{ filename: '[name].[contenthash:8].bundle.js', clean: true },
|
|
27
|
+
cdnPath ? { publicPath: cdnPath } : {}
|
|
28
|
+
)
|
|
29
|
+
);
|
|
19
30
|
}
|
|
20
31
|
return { output };
|
|
21
32
|
}
|
|
22
33
|
exports.outputConfig = outputConfig;
|
|
23
|
-
//# sourceMappingURL=output-config.js.map
|
|
34
|
+
//# sourceMappingURL=output-config.js.map
|
|
@@ -1,11 +1,13 @@
|
|
|
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.assetsManifestPlugin = void 0;
|
|
7
|
-
const webpack_assets_manifest_1 = __importDefault(require(
|
|
8
|
-
const utils_1 = require(
|
|
9
|
+
const webpack_assets_manifest_1 = __importDefault(require('webpack-assets-manifest'));
|
|
10
|
+
const utils_1 = require('../utils');
|
|
9
11
|
function assetsManifestPlugin(context, _) {
|
|
10
12
|
if (!context.isWebComponent) {
|
|
11
13
|
return;
|
|
@@ -15,9 +17,12 @@ function assetsManifestPlugin(context, _) {
|
|
|
15
17
|
output: 'entrypoints.json',
|
|
16
18
|
transform(assets) {
|
|
17
19
|
const entrypoints = assets.entrypoints;
|
|
18
|
-
const getAssetsByType =
|
|
20
|
+
const getAssetsByType = type => {
|
|
19
21
|
return Object.values(entrypoints)
|
|
20
|
-
.map(({ assets }) => {
|
|
22
|
+
.map(({ assets }) => {
|
|
23
|
+
var _a;
|
|
24
|
+
return (_a = assets[type]) !== null && _a !== void 0 ? _a : [];
|
|
25
|
+
})
|
|
21
26
|
.flat();
|
|
22
27
|
};
|
|
23
28
|
return {
|
|
@@ -31,4 +36,4 @@ function assetsManifestPlugin(context, _) {
|
|
|
31
36
|
});
|
|
32
37
|
}
|
|
33
38
|
exports.assetsManifestPlugin = assetsManifestPlugin;
|
|
34
|
-
//# sourceMappingURL=assets-manifest-plugin.js.map
|
|
39
|
+
//# sourceMappingURL=assets-manifest-plugin.js.map
|
|
@@ -1,11 +1,13 @@
|
|
|
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.bundleAnalyzerPlugin = void 0;
|
|
7
|
-
const path_1 = __importDefault(require(
|
|
8
|
-
const os_1 = __importDefault(require(
|
|
9
|
+
const path_1 = __importDefault(require('path'));
|
|
10
|
+
const os_1 = __importDefault(require('os'));
|
|
9
11
|
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
10
12
|
function bundleAnalyzerPlugin(context, _) {
|
|
11
13
|
if (!context.buildStat) {
|
|
@@ -42,4 +44,4 @@ function formatDate(date) {
|
|
|
42
44
|
const MM = date.getMinutes();
|
|
43
45
|
return `${yyyy}-${mm}-${dd} ${HH}:${MM}`;
|
|
44
46
|
}
|
|
45
|
-
//# sourceMappingURL=bundle-analyser-plugin.js.map
|
|
47
|
+
//# sourceMappingURL=bundle-analyser-plugin.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.defineExposedDependenciesPlugin = void 0;
|
|
4
|
-
const webpack_1 = require(
|
|
5
|
-
const utils_1 = require(
|
|
4
|
+
const webpack_1 = require('webpack');
|
|
5
|
+
const utils_1 = require('../../../utils');
|
|
6
6
|
function defineExposedDependenciesPlugin(context, _) {
|
|
7
7
|
const { isExposeSharedDependencies, packageData, sharedDependencies } = context;
|
|
8
8
|
if (!isExposeSharedDependencies) {
|
|
@@ -10,16 +10,23 @@ function defineExposedDependenciesPlugin(context, _) {
|
|
|
10
10
|
}
|
|
11
11
|
return new webpack_1.DefinePlugin({
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
13
|
-
EXPOSED_DEPENDENCIES: JSON.stringify(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
EXPOSED_DEPENDENCIES: JSON.stringify(
|
|
14
|
+
Object.entries(sharedDependencies).reduce((result, [dependency, variable]) => {
|
|
15
|
+
var _a;
|
|
16
|
+
return Object.assign(result, {
|
|
17
|
+
[dependency]: {
|
|
18
|
+
version: (0, utils_1.getPackageDependencyVersion)(
|
|
19
|
+
dependency,
|
|
20
|
+
(_a = packageData.dependencies) === null || _a === void 0
|
|
21
|
+
? void 0
|
|
22
|
+
: _a[dependency]
|
|
23
|
+
),
|
|
24
|
+
variable,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}, {})
|
|
28
|
+
),
|
|
22
29
|
});
|
|
23
30
|
}
|
|
24
31
|
exports.defineExposedDependenciesPlugin = defineExposedDependenciesPlugin;
|
|
25
|
-
//# sourceMappingURL=define-exposed-dependencies-plugin.js.map
|
|
32
|
+
//# sourceMappingURL=define-exposed-dependencies-plugin.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.defineWebComponentNamePlugin = void 0;
|
|
4
|
-
const webpack_1 = require(
|
|
4
|
+
const webpack_1 = require('webpack');
|
|
5
5
|
function defineWebComponentNamePlugin(context, _) {
|
|
6
6
|
const { isWebComponent, name } = context;
|
|
7
7
|
if (!isWebComponent) {
|
|
@@ -13,4 +13,4 @@ function defineWebComponentNamePlugin(context, _) {
|
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
exports.defineWebComponentNamePlugin = defineWebComponentNamePlugin;
|
|
16
|
-
//# sourceMappingURL=define-web-component-name-plugin.js.map
|
|
16
|
+
//# sourceMappingURL=define-web-component-name-plugin.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.filterWarningsPlugin = void 0;
|
|
4
4
|
const FilterWarningsPlugin = require('webpack-filter-warnings-plugin');
|
|
5
5
|
function filterWarningsPlugin({ embed }, _) {
|
|
@@ -11,4 +11,4 @@ function filterWarningsPlugin({ embed }, _) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
exports.filterWarningsPlugin = filterWarningsPlugin;
|
|
14
|
-
//# sourceMappingURL=filter-warnings-plugin.js.map
|
|
14
|
+
//# sourceMappingURL=filter-warnings-plugin.js.map
|