@unpackjs/core 1.7.2 → 1.7.4
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/compiled/css-loader/index.js +20 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +9 -8
- package/compiled/sass-loader/package.json +1 -1
- package/compiled/style-loader/index.js +10 -10
- package/dist/bundler-config/chunkSplit.cjs +0 -4
- package/dist/bundler-config/chunkSplit.d.ts.map +1 -1
- package/dist/bundler-config/chunkSplit.js +0 -4
- package/dist/bundler-config/css.cjs +1 -2
- package/dist/bundler-config/css.d.ts.map +1 -1
- package/dist/bundler-config/css.js +1 -2
- package/dist/bundler-config/experimentCss.cjs +4 -1
- package/dist/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist/bundler-config/experimentCss.js +4 -1
- package/dist/bundler-config/index.cjs +6 -6
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +6 -6
- package/dist/bundler-config/jsMinify.cjs +101 -0
- package/dist/bundler-config/jsMinify.d.ts +18 -0
- package/dist/bundler-config/jsMinify.d.ts.map +1 -0
- package/dist/bundler-config/jsMinify.js +77 -0
- package/dist/createUnpack.cjs +7 -2
- package/dist/createUnpack.d.ts.map +1 -1
- package/dist/createUnpack.js +7 -2
- package/dist/lightningcss/minimizer.cjs +1 -1
- package/dist/lightningcss/minimizer.js +1 -1
- package/dist/plugin-progress/webpack.d.ts.map +1 -1
- package/dist/prebundleDeps.cjs +2 -1
- package/dist/prebundleDeps.d.ts.map +1 -1
- package/dist/prebundleDeps.js +2 -1
- package/dist/run/dev.cjs +1 -1
- package/dist/run/dev.js +1 -1
- package/dist/types/config.d.ts +5 -2
- package/dist/types/config.d.ts.map +1 -1
- package/package.json +8 -10
- package/dist/thread-loader/WorkerError.cjs +0 -41
- package/dist/thread-loader/WorkerError.js +0 -31
- package/dist/thread-loader/WorkerPool.cjs +0 -407
- package/dist/thread-loader/WorkerPool.js +0 -387
- package/dist/thread-loader/index.cjs +0 -100
- package/dist/thread-loader/index.js +0 -85
- package/dist/thread-loader/readBuffer.cjs +0 -55
- package/dist/thread-loader/readBuffer.js +0 -45
- package/dist/thread-loader/serializer.cjs +0 -46
- package/dist/thread-loader/serializer.js +0 -31
- package/dist/thread-loader/utils.cjs +0 -84
- package/dist/thread-loader/utils.js +0 -60
- package/dist/thread-loader/worker.cjs +0 -377
- package/dist/thread-loader/worker.js +0 -382
- package/dist/thread-loader/workerPools.cjs +0 -57
- package/dist/thread-loader/workerPools.js +0 -33
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
9504: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(8332);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(3016).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
8332: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
11
11
|
"use strict";
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(977));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(7337));
|
|
16
16
|
var _semver = __nccwpck_require__(5204);
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(3747));
|
|
18
|
+
var _plugins = __nccwpck_require__(6919);
|
|
19
|
+
var _utils = __nccwpck_require__(3016);
|
|
20
20
|
function _interopRequireDefault(obj) {
|
|
21
21
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
22
22
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
callback(null, `${importCode}${moduleCode}${exportCode}`);
|
|
244
244
|
}
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
6919: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
247
247
|
"use strict";
|
|
248
248
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
249
249
|
Object.defineProperty(exports, "icssParser", {
|
|
@@ -265,22 +265,22 @@
|
|
|
265
265
|
},
|
|
266
266
|
});
|
|
267
267
|
var _postcssImportParser = _interopRequireDefault(
|
|
268
|
-
__nccwpck_require__(
|
|
268
|
+
__nccwpck_require__(892),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(3539),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4944));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
3539: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
279
279
|
"use strict";
|
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
281
|
exports["default"] = void 0;
|
|
282
282
|
var _icssUtils = __nccwpck_require__(4508);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(3016);
|
|
284
284
|
const plugin = (options = {}) => ({
|
|
285
285
|
postcssPlugin: "postcss-icss-parser",
|
|
286
286
|
async OnceExit(root) {
|
|
@@ -379,14 +379,14 @@
|
|
|
379
379
|
plugin.postcss = true;
|
|
380
380
|
var _default = (exports["default"] = plugin);
|
|
381
381
|
},
|
|
382
|
-
|
|
382
|
+
892: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
383
383
|
"use strict";
|
|
384
384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
385
385
|
exports["default"] = void 0;
|
|
386
386
|
var _postcssValueParser = _interopRequireDefault(
|
|
387
387
|
__nccwpck_require__(7555),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(3016);
|
|
390
390
|
function _interopRequireDefault(obj) {
|
|
391
391
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
392
392
|
}
|
|
@@ -691,14 +691,14 @@
|
|
|
691
691
|
plugin.postcss = true;
|
|
692
692
|
var _default = (exports["default"] = plugin);
|
|
693
693
|
},
|
|
694
|
-
|
|
694
|
+
4944: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
695
695
|
"use strict";
|
|
696
696
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
697
697
|
exports["default"] = void 0;
|
|
698
698
|
var _postcssValueParser = _interopRequireDefault(
|
|
699
699
|
__nccwpck_require__(7555),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(3016);
|
|
702
702
|
function _interopRequireDefault(obj) {
|
|
703
703
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
704
704
|
}
|
|
@@ -1041,7 +1041,7 @@
|
|
|
1041
1041
|
plugin.postcss = true;
|
|
1042
1042
|
var _default = (exports["default"] = plugin);
|
|
1043
1043
|
},
|
|
1044
|
-
|
|
1044
|
+
3016: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1045
1045
|
"use strict";
|
|
1046
1046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1047
1047
|
exports.WEBPACK_IGNORE_COMMENT_REGEXP = void 0;
|
|
@@ -7964,7 +7964,7 @@
|
|
|
7964
7964
|
"use strict";
|
|
7965
7965
|
module.exports = require("util");
|
|
7966
7966
|
},
|
|
7967
|
-
|
|
7967
|
+
3747: (module) => {
|
|
7968
7968
|
"use strict";
|
|
7969
7969
|
module.exports = JSON.parse(
|
|
7970
7970
|
'{"title":"CSS Loader options","additionalProperties":false,"properties":{"url":{"description":"Allows to enables/disables `url()`/`image-set()` functions handling.","link":"https://github.com/webpack-contrib/css-loader#url","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"import":{"description":"Allows to enables/disables `@import` at-rules handling.","link":"https://github.com/webpack-contrib/css-loader#import","anyOf":[{"type":"boolean"},{"type":"object","properties":{"filter":{"instanceof":"Function"}},"additionalProperties":false}]},"modules":{"description":"Allows to enable/disable CSS Modules or ICSS and setup configuration.","link":"https://github.com/webpack-contrib/css-loader#modules","anyOf":[{"type":"boolean"},{"enum":["local","global","pure","icss"]},{"type":"object","additionalProperties":false,"properties":{"auto":{"description":"Allows auto enable CSS modules based on filename.","link":"https://github.com/webpack-contrib/css-loader#auto","anyOf":[{"instanceof":"RegExp"},{"instanceof":"Function"},{"type":"boolean"}]},"mode":{"description":"Setup `mode` option.","link":"https://github.com/webpack-contrib/css-loader#mode","anyOf":[{"enum":["local","global","pure","icss"]},{"instanceof":"Function"}]},"localIdentName":{"description":"Allows to configure the generated local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentname","type":"string","minLength":1},"localIdentContext":{"description":"Allows to redefine basic loader context for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentcontext","type":"string","minLength":1},"localIdentHashSalt":{"description":"Allows to add custom hash to generate more unique classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashsalt","type":"string","minLength":1},"localIdentHashFunction":{"description":"Allows to specify hash function to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashfunction","type":"string","minLength":1},"localIdentHashDigest":{"description":"Allows to specify hash digest to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigest","type":"string","minLength":1},"localIdentHashDigestLength":{"description":"Allows to specify hash digest length to generate classes.","link":"https://github.com/webpack-contrib/css-loader#localidenthashdigestlength","type":"number"},"hashStrategy":{"description":"Allows to specify should localName be used when computing the hash.","link":"https://github.com/webpack-contrib/css-loader#hashstrategy","enum":["resource-path-and-local-name","minimal-subset"]},"localIdentRegExp":{"description":"Allows to specify custom RegExp for local ident name.","link":"https://github.com/webpack-contrib/css-loader#localidentregexp","anyOf":[{"type":"string","minLength":1},{"instanceof":"RegExp"}]},"getLocalIdent":{"description":"Allows to specify a function to generate the classname.","link":"https://github.com/webpack-contrib/css-loader#getlocalident","instanceof":"Function"},"namedExport":{"description":"Enables/disables ES modules named export for locals.","link":"https://github.com/webpack-contrib/css-loader#namedexport","type":"boolean"},"exportGlobals":{"description":"Allows to export names from global class or id, so you can use that as local name.","link":"https://github.com/webpack-contrib/css-loader#exportglobals","type":"boolean"},"exportLocalsConvention":{"description":"Style of exported classnames.","link":"https://github.com/webpack-contrib/css-loader#localsconvention","anyOf":[{"enum":["asIs","as-is","camelCase","camel-case","camelCaseOnly","camel-case-only","dashes","dashesOnly","dashes-only"]},{"instanceof":"Function"}]},"exportOnlyLocals":{"description":"Export only locals.","link":"https://github.com/webpack-contrib/css-loader#exportonlylocals","type":"boolean"},"getJSON":{"description":"Allows outputting of CSS modules mapping through a callback.","link":"https://github.com/webpack-contrib/css-loader#getJSON","instanceof":"Function"}}}]},"sourceMap":{"description":"Allows to enable/disable source maps.","link":"https://github.com/webpack-contrib/css-loader#sourcemap","type":"boolean"},"importLoaders":{"description":"Allows enables/disables or setups number of loaders applied before CSS loader for `@import`/CSS Modules and ICSS imports.","link":"https://github.com/webpack-contrib/css-loader#importloaders","anyOf":[{"type":"boolean"},{"type":"string"},{"type":"integer"}]},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"exportType":{"description":"Allows exporting styles as array with modules, string or constructable stylesheet (i.e. `CSSStyleSheet`).","link":"https://github.com/webpack-contrib/css-loader#exporttype","enum":["array","string","css-style-sheet"]}},"type":"object"}',
|
|
@@ -7999,6 +7999,6 @@
|
|
|
7999
7999
|
}
|
|
8000
8000
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8001
8001
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8002
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8002
|
+
var __webpack_exports__ = __nccwpck_require__(9504);
|
|
8003
8003
|
module.exports = __webpack_exports__;
|
|
8004
8004
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
922: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(246)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
246: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
8
8
|
var __webpack_unused_export__;
|
|
9
9
|
__webpack_unused_export__ = { value: true };
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(796));
|
|
13
|
+
var _utils = __nccwpck_require__(995);
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
16
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
995: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
17: (module) => {
|
|
308
308
|
module.exports = require("path");
|
|
309
309
|
},
|
|
310
|
-
|
|
310
|
+
796: (module) => {
|
|
311
311
|
module.exports = JSON.parse(
|
|
312
312
|
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack-contrib/less-loader#lessoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Less` code to the actual entry file.","link":"https://github.com/webpack-contrib/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/less-loader#webpackimporter","type":"boolean"},"implementation":{"description":"The implementation of the `Less` to be used.","link":"https://github.com/webpack-contrib/less-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"lessLogAsWarnOrErr":{"description":"Less warnings and errors will be webpack warnings or errors.","link":"https://github.com/webpack-contrib/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
313
313
|
);
|
|
@@ -335,6 +335,6 @@
|
|
|
335
335
|
}
|
|
336
336
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
337
337
|
__nccwpck_require__.ab = __dirname + "/";
|
|
338
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
338
|
+
var __webpack_exports__ = __nccwpck_require__(922);
|
|
339
339
|
module.exports = __webpack_exports__;
|
|
340
340
|
})();
|
|
@@ -91800,19 +91800,19 @@
|
|
|
91800
91800
|
module.exports = createColors();
|
|
91801
91801
|
module.exports.createColors = createColors;
|
|
91802
91802
|
},
|
|
91803
|
-
|
|
91803
|
+
7823: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
91804
91804
|
"use strict";
|
|
91805
|
-
module.exports = __nccwpck_require__(
|
|
91805
|
+
module.exports = __nccwpck_require__(7028)["default"];
|
|
91806
91806
|
},
|
|
91807
|
-
|
|
91807
|
+
7028: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
91808
91808
|
"use strict";
|
|
91809
91809
|
var __webpack_unused_export__;
|
|
91810
91810
|
__webpack_unused_export__ = { value: true };
|
|
91811
91811
|
exports["default"] = loader;
|
|
91812
91812
|
var _path = _interopRequireDefault(__nccwpck_require__(1017));
|
|
91813
91813
|
var _package = _interopRequireDefault(__nccwpck_require__(7337));
|
|
91814
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
91815
|
-
var _utils = __nccwpck_require__(
|
|
91814
|
+
var _options = _interopRequireDefault(__nccwpck_require__(3529));
|
|
91815
|
+
var _utils = __nccwpck_require__(7752);
|
|
91816
91816
|
function _interopRequireDefault(obj) {
|
|
91817
91817
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
91818
91818
|
}
|
|
@@ -91990,7 +91990,7 @@
|
|
|
91990
91990
|
callback(null, result.css, map, { ast });
|
|
91991
91991
|
}
|
|
91992
91992
|
},
|
|
91993
|
-
|
|
91993
|
+
7752: (module, exports, __nccwpck_require__) => {
|
|
91994
91994
|
"use strict";
|
|
91995
91995
|
module = __nccwpck_require__.nmd(module);
|
|
91996
91996
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -93112,7 +93112,7 @@
|
|
|
93112
93112
|
return keywords.has(word);
|
|
93113
93113
|
}
|
|
93114
93114
|
},
|
|
93115
|
-
|
|
93115
|
+
3529: (module) => {
|
|
93116
93116
|
"use strict";
|
|
93117
93117
|
module.exports = JSON.parse(
|
|
93118
93118
|
'{"title":"PostCSS Loader options","type":"object","properties":{"postcssOptions":{"description":"Options to pass through to `Postcss`.","link":"https://github.com/webpack-contrib/postcss-loader#postcssOptions","anyOf":[{"type":"object","additionalProperties":true,"properties":{"config":{"description":"Allows to specify PostCSS config path.","link":"https://github.com/webpack-contrib/postcss-loader#config","anyOf":[{"description":"Allows to specify the path to the configuration file","type":"string"},{"description":"Enables/Disables autoloading config","type":"boolean"}]}}},{"instanceof":"Function"}]},"execute":{"description":"Enables/Disables PostCSS parser support in \'CSS-in-JS\'.","link":"https://github.com/webpack-contrib/postcss-loader#execute","type":"boolean"},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/postcss-loader#sourcemap","type":"boolean"},"implementation":{"description":"The implementation of postcss to use, instead of the locally installed version","link":"https://github.com/webpack-contrib/postcss-loader#implementation","anyOf":[{"type":"string"},{"instanceof":"Function"}]}},"additionalProperties":false}',
|
|
@@ -93222,6 +93222,6 @@
|
|
|
93222
93222
|
})();
|
|
93223
93223
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
93224
93224
|
__nccwpck_require__.ab = __dirname + "/";
|
|
93225
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
93225
|
+
var __webpack_exports__ = __nccwpck_require__(7823);
|
|
93226
93226
|
module.exports = __webpack_exports__;
|
|
93227
93227
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
642: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(941);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
941: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4804
4804
|
"use strict";
|
|
4805
4805
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4806
4806
|
exports["default"] = void 0;
|
|
4807
4807
|
var _url = _interopRequireDefault(__nccwpck_require__(310));
|
|
4808
4808
|
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(794));
|
|
4810
|
+
var _utils = __nccwpck_require__(300);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4917,7 +4917,7 @@
|
|
|
4917
4917
|
}
|
|
4918
4918
|
var _default = (exports["default"] = loader);
|
|
4919
4919
|
},
|
|
4920
|
-
|
|
4920
|
+
300: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4921
4921
|
"use strict";
|
|
4922
4922
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4923
4923
|
exports.errorFactory = errorFactory;
|
|
@@ -5063,6 +5063,7 @@
|
|
|
5063
5063
|
}
|
|
5064
5064
|
if (useSourceMap) {
|
|
5065
5065
|
sassOptions.sourceMap = true;
|
|
5066
|
+
sassOptions.sourceMapIncludeSources = true;
|
|
5066
5067
|
}
|
|
5067
5068
|
if (typeof sassOptions.syntax === "undefined") {
|
|
5068
5069
|
const ext = _path.default.extname(resourcePath);
|
|
@@ -5577,7 +5578,7 @@
|
|
|
5577
5578
|
"use strict";
|
|
5578
5579
|
module.exports = require("url");
|
|
5579
5580
|
},
|
|
5580
|
-
|
|
5581
|
+
794: (module) => {
|
|
5581
5582
|
"use strict";
|
|
5582
5583
|
module.exports = JSON.parse(
|
|
5583
5584
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack-contrib/sass-loader#implementation","anyOf":[{"type":"string"},{"type":"object"}]},"api":{"description":"Switch between old and modern API for `sass` (`Dart Sass`) and `Sass Embedded` implementations.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack-contrib/sass-loader#sassoptions","anyOf":[{"type":"object","additionalProperties":true},{"instanceof":"Function"}]},"additionalData":{"description":"Prepends/Appends `Sass`/`SCSS` code before the actual entry file.","link":"https://github.com/webpack-contrib/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack-contrib/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack-contrib/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack-contrib/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5607,6 +5608,6 @@
|
|
|
5607
5608
|
}
|
|
5608
5609
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5609
5610
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5610
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5611
|
+
var __webpack_exports__ = __nccwpck_require__(642);
|
|
5611
5612
|
module.exports = __webpack_exports__;
|
|
5612
5613
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sass-loader","author":"J. Tangelder","version":"16.0.
|
|
1
|
+
{"name":"sass-loader","author":"J. Tangelder","version":"16.0.4","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
4
|
+
811: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
const loader = __nccwpck_require__(2);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
},
|
|
8
|
-
|
|
8
|
+
2: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
13
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(214);
|
|
13
|
+
var _options = _interopRequireDefault(__nccwpck_require__(843));
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
16
16
|
}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
};
|
|
96
96
|
var _default = (exports["default"] = loader);
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
296: (module) => {
|
|
99
99
|
function isEqualLocals(a, b, isNamedExport) {
|
|
100
100
|
if ((!a && b) || (a && !b)) {
|
|
101
101
|
return false;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
module.exports = isEqualLocals;
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
214: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
125
125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126
126
|
exports.getExportLazyStyleCode = getExportLazyStyleCode;
|
|
127
127
|
exports.getExportStyleCode = getExportStyleCode;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
exports.getdomAPI = getdomAPI;
|
|
143
143
|
exports.stringifyRequest = stringifyRequest;
|
|
144
144
|
var _path = _interopRequireDefault(__nccwpck_require__(17));
|
|
145
|
-
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(
|
|
145
|
+
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(296));
|
|
146
146
|
function _interopRequireDefault(obj) {
|
|
147
147
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
148
148
|
}
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
17: (module) => {
|
|
338
338
|
module.exports = require("path");
|
|
339
339
|
},
|
|
340
|
-
|
|
340
|
+
843: (module) => {
|
|
341
341
|
module.exports = JSON.parse(
|
|
342
342
|
'{"title":"Style Loader options","type":"object","properties":{"injectType":{"description":"Allows to setup how styles will be injected into DOM.","link":"https://github.com/webpack-contrib/style-loader#injecttype","enum":["styleTag","singletonStyleTag","autoStyleTag","lazyStyleTag","lazySingletonStyleTag","lazyAutoStyleTag","linkTag"]},"attributes":{"description":"Adds custom attributes to tag.","link":"https://github.com/webpack-contrib/style-loader#attributes","type":"object"},"insert":{"description":"Inserts `<style>`/`<link>` at the given position.","link":"https://github.com/webpack-contrib/style-loader#insert","type":"string"},"base":{"description":"Sets module ID base for DLLPlugin.","link":"https://github.com/webpack-contrib/style-loader#base","type":"number"},"esModule":{"description":"Use the ES modules syntax.","link":"https://github.com/webpack-contrib/css-loader#esmodule","type":"boolean"},"styleTagTransform":{"description":"Transform tag and css when insert \'style\' tag into the DOM","link":"https://github.com/webpack-contrib/style-loader#styleTagTransform","type":"string"}},"additionalProperties":false}',
|
|
343
343
|
);
|
|
@@ -365,6 +365,6 @@
|
|
|
365
365
|
}
|
|
366
366
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
367
367
|
__nccwpck_require__.ab = __dirname + "/";
|
|
368
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
368
|
+
var __webpack_exports__ = __nccwpck_require__(811);
|
|
369
369
|
module.exports = __webpack_exports__;
|
|
370
370
|
})();
|
|
@@ -65,7 +65,6 @@ function splitByExperience(ctx) {
|
|
|
65
65
|
}
|
|
66
66
|
return {
|
|
67
67
|
...defaultConfig,
|
|
68
|
-
// @ts-ignore
|
|
69
68
|
cacheGroups: {
|
|
70
69
|
...defaultConfig.cacheGroups,
|
|
71
70
|
...experienceCacheGroup,
|
|
@@ -80,7 +79,6 @@ function splitBySize(ctx) {
|
|
|
80
79
|
...defaultConfig,
|
|
81
80
|
minSize: chunkSplit.minSize ?? 0,
|
|
82
81
|
maxSize: chunkSplit.maxSize ?? Number.POSITIVE_INFINITY,
|
|
83
|
-
// @ts-ignore
|
|
84
82
|
cacheGroups: {
|
|
85
83
|
...defaultConfig.cacheGroups,
|
|
86
84
|
...forceSplittingGroups
|
|
@@ -120,7 +118,6 @@ function splitCustom(ctx) {
|
|
|
120
118
|
const { forceSplittingGroups, defaultConfig } = ctx;
|
|
121
119
|
return {
|
|
122
120
|
...defaultConfig,
|
|
123
|
-
// @ts-ignore
|
|
124
121
|
cacheGroups: {
|
|
125
122
|
...defaultConfig.cacheGroups,
|
|
126
123
|
...forceSplittingGroups
|
|
@@ -143,7 +140,6 @@ function singleVendor(ctx) {
|
|
|
143
140
|
};
|
|
144
141
|
return {
|
|
145
142
|
...defaultConfig,
|
|
146
|
-
// @ts-ignore
|
|
147
143
|
cacheGroups: {
|
|
148
144
|
...defaultConfig.cacheGroups,
|
|
149
145
|
...singleVendorCacheGroup,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkSplit.d.ts","sourceRoot":"","sources":["../../src/bundler-config/chunkSplit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EAKpB,YAAY,EACb,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"chunkSplit.d.ts","sourceRoot":"","sources":["../../src/bundler-config/chunkSplit.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,oBAAoB,EAKpB,YAAY,EACb,MAAM,iBAAiB,CAAA;AAwKxB,eAAO,MAAM,qBAAqB,8BAG/B;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,oBAkBH,CAAA"}
|
|
@@ -42,7 +42,6 @@ function splitByExperience(ctx) {
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
...defaultConfig,
|
|
45
|
-
// @ts-ignore
|
|
46
45
|
cacheGroups: {
|
|
47
46
|
...defaultConfig.cacheGroups,
|
|
48
47
|
...experienceCacheGroup,
|
|
@@ -57,7 +56,6 @@ function splitBySize(ctx) {
|
|
|
57
56
|
...defaultConfig,
|
|
58
57
|
minSize: chunkSplit.minSize ?? 0,
|
|
59
58
|
maxSize: chunkSplit.maxSize ?? Number.POSITIVE_INFINITY,
|
|
60
|
-
// @ts-ignore
|
|
61
59
|
cacheGroups: {
|
|
62
60
|
...defaultConfig.cacheGroups,
|
|
63
61
|
...forceSplittingGroups
|
|
@@ -97,7 +95,6 @@ function splitCustom(ctx) {
|
|
|
97
95
|
const { forceSplittingGroups, defaultConfig } = ctx;
|
|
98
96
|
return {
|
|
99
97
|
...defaultConfig,
|
|
100
|
-
// @ts-ignore
|
|
101
98
|
cacheGroups: {
|
|
102
99
|
...defaultConfig.cacheGroups,
|
|
103
100
|
...forceSplittingGroups
|
|
@@ -120,7 +117,6 @@ function singleVendor(ctx) {
|
|
|
120
117
|
};
|
|
121
118
|
return {
|
|
122
119
|
...defaultConfig,
|
|
123
|
-
// @ts-ignore
|
|
124
120
|
cacheGroups: {
|
|
125
121
|
...defaultConfig.cacheGroups,
|
|
126
122
|
...singleVendorCacheGroup,
|
|
@@ -91,7 +91,6 @@ function applyCssConfig({
|
|
|
91
91
|
].filter(Boolean);
|
|
92
92
|
if (!(0, import_utils.isDevServer)()) {
|
|
93
93
|
config.plugins.push(
|
|
94
|
-
// @ts-expect-error - decide by bundler
|
|
95
94
|
new MiniCssExtractPlugin({
|
|
96
95
|
filename: (0, import_helper.getOutputFilename)({ type: "css", hash: unpackConfig.build?.filenameHash })
|
|
97
96
|
})
|
|
@@ -102,7 +101,7 @@ function applyCssConfig({
|
|
|
102
101
|
use: [
|
|
103
102
|
...getCommonRules({ importLoaders: 1 }),
|
|
104
103
|
unpackConfig.build?.parallel && {
|
|
105
|
-
loader:
|
|
104
|
+
loader: require.resolve("thread-loader"),
|
|
106
105
|
options: import_constants.THREAD_OPTIONS
|
|
107
106
|
},
|
|
108
107
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAazE,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAazE,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAiIvB"}
|
|
@@ -83,7 +83,6 @@ function applyCssConfig({
|
|
|
83
83
|
].filter(Boolean);
|
|
84
84
|
if (!isDevServer()) {
|
|
85
85
|
config.plugins.push(
|
|
86
|
-
// @ts-expect-error - decide by bundler
|
|
87
86
|
new MiniCssExtractPlugin({
|
|
88
87
|
filename: getOutputFilename({ type: "css", hash: unpackConfig.build?.filenameHash })
|
|
89
88
|
})
|
|
@@ -94,7 +93,7 @@ function applyCssConfig({
|
|
|
94
93
|
use: [
|
|
95
94
|
...getCommonRules({ importLoaders: 1 }),
|
|
96
95
|
unpackConfig.build?.parallel && {
|
|
97
|
-
loader:
|
|
96
|
+
loader: require.resolve("thread-loader"),
|
|
98
97
|
options: THREAD_OPTIONS
|
|
99
98
|
},
|
|
100
99
|
{
|
|
@@ -77,7 +77,7 @@ function applyExperimentCssConfig({
|
|
|
77
77
|
};
|
|
78
78
|
const getThreadLoader = () => {
|
|
79
79
|
return unpackConfig.build?.parallel && {
|
|
80
|
-
loader:
|
|
80
|
+
loader: require.resolve("thread-loader"),
|
|
81
81
|
options: import_constants.THREAD_OPTIONS
|
|
82
82
|
};
|
|
83
83
|
};
|
|
@@ -98,6 +98,7 @@ function applyExperimentCssConfig({
|
|
|
98
98
|
};
|
|
99
99
|
config.module?.rules?.push({
|
|
100
100
|
test: /\.less$/i,
|
|
101
|
+
// @ts-expect-error
|
|
101
102
|
oneOf: [
|
|
102
103
|
withCssModules({ use: [getThreadLoader(), getLessLoader()].filter(Boolean) }),
|
|
103
104
|
{
|
|
@@ -128,6 +129,7 @@ function applyExperimentCssConfig({
|
|
|
128
129
|
};
|
|
129
130
|
config.module?.rules?.push({
|
|
130
131
|
test: /\.css$/i,
|
|
132
|
+
// @ts-expect-error
|
|
131
133
|
oneOf: [
|
|
132
134
|
withCssModules({ use: [getCssLoader()] }),
|
|
133
135
|
{
|
|
@@ -149,6 +151,7 @@ function applyExperimentCssConfig({
|
|
|
149
151
|
};
|
|
150
152
|
config.module?.rules?.push({
|
|
151
153
|
test: /\.s[ac]ss$/i,
|
|
154
|
+
// @ts-expect-error
|
|
152
155
|
oneOf: [
|
|
153
156
|
withCssModules({ use: [getSassLoader()] }),
|
|
154
157
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAazE,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,
|
|
1
|
+
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAazE,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAgIvB"}
|
|
@@ -69,7 +69,7 @@ function applyExperimentCssConfig({
|
|
|
69
69
|
};
|
|
70
70
|
const getThreadLoader = () => {
|
|
71
71
|
return unpackConfig.build?.parallel && {
|
|
72
|
-
loader:
|
|
72
|
+
loader: require.resolve("thread-loader"),
|
|
73
73
|
options: THREAD_OPTIONS
|
|
74
74
|
};
|
|
75
75
|
};
|
|
@@ -90,6 +90,7 @@ function applyExperimentCssConfig({
|
|
|
90
90
|
};
|
|
91
91
|
config.module?.rules?.push({
|
|
92
92
|
test: /\.less$/i,
|
|
93
|
+
// @ts-expect-error
|
|
93
94
|
oneOf: [
|
|
94
95
|
withCssModules({ use: [getThreadLoader(), getLessLoader()].filter(Boolean) }),
|
|
95
96
|
{
|
|
@@ -120,6 +121,7 @@ function applyExperimentCssConfig({
|
|
|
120
121
|
};
|
|
121
122
|
config.module?.rules?.push({
|
|
122
123
|
test: /\.css$/i,
|
|
124
|
+
// @ts-expect-error
|
|
123
125
|
oneOf: [
|
|
124
126
|
withCssModules({ use: [getCssLoader()] }),
|
|
125
127
|
{
|
|
@@ -141,6 +143,7 @@ function applyExperimentCssConfig({
|
|
|
141
143
|
};
|
|
142
144
|
config.module?.rules?.push({
|
|
143
145
|
test: /\.s[ac]ss$/i,
|
|
146
|
+
// @ts-expect-error
|
|
144
147
|
oneOf: [
|
|
145
148
|
withCssModules({ use: [getSassLoader()] }),
|
|
146
149
|
{
|
|
@@ -35,8 +35,6 @@ var import_node_path = __toESM(require("node:path"));
|
|
|
35
35
|
var import_core = require("@rspack/core");
|
|
36
36
|
var import_html_webpack_plugin = __toESM(require("html-webpack-plugin"));
|
|
37
37
|
var import_utils = require("../utils.cjs");
|
|
38
|
-
var import_esbuild = __toESM(require("esbuild"));
|
|
39
|
-
var import_esbuild_loader = require("esbuild-loader");
|
|
40
38
|
var import_json5 = __toESM(require("json5"));
|
|
41
39
|
var import_constants = require("../constants.cjs");
|
|
42
40
|
var import_minimizer = require("../lightningcss/minimizer.cjs");
|
|
@@ -49,13 +47,14 @@ var import_chunkSplit = require("./chunkSplit.cjs");
|
|
|
49
47
|
var import_css = require("./css.cjs");
|
|
50
48
|
var import_experimentCss = require("./experimentCss.cjs");
|
|
51
49
|
var import_helper = require("./helper.cjs");
|
|
50
|
+
var import_jsMinify = require("./jsMinify.cjs");
|
|
52
51
|
const { TsCheckerRspackPlugin } = require("ts-checker-rspack-plugin");
|
|
53
52
|
const BundleAnalyzerPlugin = require("../../compiled/webpack-bundle-analyzer/index.js").BundleAnalyzerPlugin;
|
|
54
53
|
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
55
54
|
async function getBundlerConfig(unpackConfig) {
|
|
56
55
|
const isRspack = unpackConfig.bundler === "rspack";
|
|
57
56
|
const HtmlPlugin = isRspack ? import_core.rspack.HtmlRspackPlugin : import_html_webpack_plugin.default;
|
|
58
|
-
const definePlugin = (define) => isRspack ? new import_core.rspack.DefinePlugin(define) : new
|
|
57
|
+
const definePlugin = (define) => isRspack ? new import_core.rspack.DefinePlugin(define) : new import_webpack2.default.DefinePlugin(define);
|
|
59
58
|
const JS_FILENAME = (0, import_helper.getOutputFilename)({ type: "js", hash: unpackConfig.build?.filenameHash });
|
|
60
59
|
const IgnorePlugin = isRspack ? import_core.rspack.IgnorePlugin : import_webpack2.default.IgnorePlugin;
|
|
61
60
|
const CopyPlugin = isRspack ? import_core.rspack.CopyRspackPlugin : CopyWebpackPlugin;
|
|
@@ -167,19 +166,20 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
167
166
|
},
|
|
168
167
|
experiments: {
|
|
169
168
|
lazyCompilation: unpackConfig.dev?.lazyCompilation && (0, import_utils.isDevServer)(),
|
|
170
|
-
css: false
|
|
169
|
+
css: false,
|
|
170
|
+
...isRspack && (0, import_utils.isDev)() && unpackConfig.experiments?.incremental ? { incremental: true } : {}
|
|
171
171
|
},
|
|
172
172
|
optimization: {
|
|
173
173
|
moduleIds: (0, import_utils.isDev)() ? "named" : "deterministic",
|
|
174
174
|
minimize: Boolean(unpackConfig.build?.minify),
|
|
175
175
|
minimizer: [
|
|
176
|
-
new
|
|
177
|
-
implementation: import_esbuild.default,
|
|
176
|
+
new import_jsMinify.JsMinifyPlugin({
|
|
178
177
|
target: import_constants.ESBUILD_TARGET
|
|
179
178
|
}),
|
|
180
179
|
new import_minimizer.LightningcssMinifyPlugin(minifyOptions.lightningcss)
|
|
181
180
|
]
|
|
182
181
|
},
|
|
182
|
+
// @ts-expect-error
|
|
183
183
|
cache: unpackConfig.build?.cache && unpackConfig.bundler === "webpack" ? {
|
|
184
184
|
type: "filesystem"
|
|
185
185
|
} : void 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler-config/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAoBzE,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAkLhG"}
|