@servicetitan/startup 27.1.0 → 27.2.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/webpack/configs/output-config.d.ts.map +1 -1
- package/dist/webpack/configs/output-config.js +2 -1
- package/dist/webpack/configs/output-config.js.map +1 -1
- package/package.json +11 -10
- package/src/webpack/__tests__/create-webpack-config-web-component.test.ts +4 -0
- package/src/webpack/configs/output-config.ts +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-config.d.ts","sourceRoot":"","sources":["../../../src/webpack/configs/output-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG7C,KAAK,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AAE5C,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"output-config.d.ts","sourceRoot":"","sources":["../../../src/webpack/configs/output-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAG7C,KAAK,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AAE5C,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAqBnE"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.outputConfig = outputConfig;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
function outputConfig(context, _) {
|
|
9
|
-
const { destination, embed, isProduction, isWebComponent } = context;
|
|
9
|
+
const { destination, embed, isProduction, isWebComponent, name } = context;
|
|
10
10
|
const output = {
|
|
11
11
|
filename: '[name].bundle.js',
|
|
12
12
|
path: isWebComponent
|
|
@@ -18,6 +18,7 @@ function outputConfig(context, _) {
|
|
|
18
18
|
Object.assign(output, {
|
|
19
19
|
filename: '[name].[contenthash].bundle.js',
|
|
20
20
|
clean: true,
|
|
21
|
+
...(isWebComponent ? { uniqueName: name } : {}),
|
|
21
22
|
...(cdnPath ? { publicPath: cdnPath } : {}),
|
|
22
23
|
});
|
|
23
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-config.js","sourceRoot":"","sources":["../../../src/webpack/configs/output-config.ts"],"names":[],"mappings":";;;;;AAOA,
|
|
1
|
+
{"version":3,"file":"output-config.js","sourceRoot":"","sources":["../../../src/webpack/configs/output-config.ts"],"names":[],"mappings":";;;;;AAOA,oCAqBC;AA5BD,gDAAwB;AAOxB,SAAgB,YAAY,CAAC,OAAgB,EAAE,CAAY;IACvD,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAE3E,MAAM,MAAM,GAAW;QACnB,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,cAAc;YAChB,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,WAAW,WAAW,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC/E,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,GAAG,WAAW,SAAS,CAAC;KAC1D,CAAC;IAEF,IAAI,YAAY,EAAE,CAAC;QACf,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;QAC5C,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YAClB,QAAQ,EAAE,gCAAgC;YAC1C,KAAK,EAAE,IAAI;YACX,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/C,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9C,CAAC,CAAC;IACP,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,CAAC;AACtB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/startup",
|
|
3
|
-
"version": "27.
|
|
3
|
+
"version": "27.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "https://docs.st.dev/docs/frontend/startup",
|
|
6
6
|
"repository": {
|
|
@@ -35,10 +35,11 @@
|
|
|
35
35
|
"@babel/preset-env": "~7.25.4",
|
|
36
36
|
"@jest/core": "~29.7.0",
|
|
37
37
|
"@jest/types": "~29.6.3",
|
|
38
|
-
"@
|
|
39
|
-
"@servicetitan/
|
|
38
|
+
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
|
|
39
|
+
"@servicetitan/eslint-config": "27.2.0",
|
|
40
|
+
"@servicetitan/stylelint-config": "27.2.0",
|
|
40
41
|
"@svgr/webpack": "^8.1.0",
|
|
41
|
-
"@swc/core": "1.
|
|
42
|
+
"@swc/core": "1.7.26",
|
|
42
43
|
"@types/debug": "^4.1.12",
|
|
43
44
|
"@types/jest": "~29.5.12",
|
|
44
45
|
"chalk": "~4.1.2",
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
"cpx2": "^7.0.1",
|
|
47
48
|
"css-loader": "~7.1.2",
|
|
48
49
|
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
49
|
-
"debug": "^4.3.
|
|
50
|
+
"debug": "^4.3.7",
|
|
50
51
|
"deepmerge": "~4.3.1",
|
|
51
52
|
"esbuild-loader": "~4.2.2",
|
|
52
53
|
"eslint": "~8.57.0",
|
|
@@ -69,9 +70,9 @@
|
|
|
69
70
|
"moment-locales-webpack-plugin": "~1.2.0",
|
|
70
71
|
"multimatch": "~5.0.0",
|
|
71
72
|
"portfinder": "~1.0.32",
|
|
72
|
-
"postcss": "~8.4.
|
|
73
|
+
"postcss": "~8.4.47",
|
|
73
74
|
"prettier": "~3.3.3",
|
|
74
|
-
"sass": "~1.
|
|
75
|
+
"sass": "~1.78.0",
|
|
75
76
|
"sass-loader": "~16.0.1",
|
|
76
77
|
"source-map-loader": "~5.0.0",
|
|
77
78
|
"string-width": "<5.0.0",
|
|
@@ -83,12 +84,12 @@
|
|
|
83
84
|
"ts-loader": "~9.5.1",
|
|
84
85
|
"ts-node": "~10.9.2",
|
|
85
86
|
"typed-css-modules": "~0.9.1",
|
|
86
|
-
"typescript": "5.
|
|
87
|
+
"typescript": "5.6.2",
|
|
87
88
|
"username": "~5.1.0",
|
|
88
89
|
"webpack": "~5.94.0",
|
|
89
90
|
"webpack-assets-manifest": "~5.2.1",
|
|
90
91
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
91
|
-
"webpack-dev-server": "~5.0
|
|
92
|
+
"webpack-dev-server": "~5.1.0",
|
|
92
93
|
"webpack-filter-warnings-plugin": "~1.2.1",
|
|
93
94
|
"webpack-merge": "~6.0.1",
|
|
94
95
|
"webpack-virtual-modules": "~0.6.2",
|
|
@@ -105,5 +106,5 @@
|
|
|
105
106
|
"cli": {
|
|
106
107
|
"webpack": false
|
|
107
108
|
},
|
|
108
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "311c957e8712703f03339865cd83b98e0140a523"
|
|
109
110
|
}
|
|
@@ -6,7 +6,7 @@ type Config = Configuration['output'];
|
|
|
6
6
|
type Result = Pick<Configuration, 'output'>;
|
|
7
7
|
|
|
8
8
|
export function outputConfig(context: Context, _: Overrides): Result {
|
|
9
|
-
const { destination, embed, isProduction, isWebComponent } = context;
|
|
9
|
+
const { destination, embed, isProduction, isWebComponent, name } = context;
|
|
10
10
|
|
|
11
11
|
const output: Config = {
|
|
12
12
|
filename: '[name].bundle.js',
|
|
@@ -20,6 +20,7 @@ export function outputConfig(context: Context, _: Overrides): Result {
|
|
|
20
20
|
Object.assign(output, {
|
|
21
21
|
filename: '[name].[contenthash].bundle.js',
|
|
22
22
|
clean: true,
|
|
23
|
+
...(isWebComponent ? { uniqueName: name } : {}),
|
|
23
24
|
...(cdnPath ? { publicPath: cdnPath } : {}),
|
|
24
25
|
});
|
|
25
26
|
}
|