@unpackjs/core 3.5.3 → 3.6.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/compiled/css-loader/index.js +20 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +10 -10
- package/compiled/sass-loader/index.js +8 -8
- package/dist/index.js +88 -29
- package/dist/typedCssModulesLoader.mjs +5 -7
- package/dist-types/constants.d.ts +0 -1
- package/dist-types/constants.d.ts.map +1 -1
- package/dist-types/createUnpack.d.ts.map +1 -1
- package/dist-types/prebundleDeps.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +9 -0
- package/dist-types/types/config.d.ts.map +1 -1
- package/dist-types/utils.d.ts +11 -0
- package/dist-types/utils.d.ts.map +1 -1
- package/package.json +8 -13
- package/dist/index.cjs +0 -2055
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
853: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
4
|
"use strict";
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
5
|
+
const loader = __nccwpck_require__(8271);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
module.exports.defaultGetLocalIdent =
|
|
8
|
-
__nccwpck_require__(
|
|
8
|
+
__nccwpck_require__(1370).defaultGetLocalIdent;
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
8271: (__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__(1940));
|
|
15
15
|
var _package = _interopRequireDefault(__nccwpck_require__(444));
|
|
16
16
|
var _semver = __nccwpck_require__(5200);
|
|
17
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
18
|
-
var _plugins = __nccwpck_require__(
|
|
19
|
-
var _utils = __nccwpck_require__(
|
|
17
|
+
var _options = _interopRequireDefault(__nccwpck_require__(6933));
|
|
18
|
+
var _plugins = __nccwpck_require__(2372);
|
|
19
|
+
var _utils = __nccwpck_require__(1370);
|
|
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
|
+
2372: (__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__(4623),
|
|
269
269
|
);
|
|
270
270
|
var _postcssIcssParser = _interopRequireDefault(
|
|
271
|
-
__nccwpck_require__(
|
|
271
|
+
__nccwpck_require__(6434),
|
|
272
272
|
);
|
|
273
|
-
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(
|
|
273
|
+
var _postcssUrlParser = _interopRequireDefault(__nccwpck_require__(4885));
|
|
274
274
|
function _interopRequireDefault(obj) {
|
|
275
275
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
276
276
|
}
|
|
277
277
|
},
|
|
278
|
-
|
|
278
|
+
6434: (__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__(229);
|
|
283
|
-
var _utils = __nccwpck_require__(
|
|
283
|
+
var _utils = __nccwpck_require__(1370);
|
|
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
|
+
4623: (__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__(5245),
|
|
388
388
|
);
|
|
389
|
-
var _utils = __nccwpck_require__(
|
|
389
|
+
var _utils = __nccwpck_require__(1370);
|
|
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
|
+
4885: (__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__(5245),
|
|
700
700
|
);
|
|
701
|
-
var _utils = __nccwpck_require__(
|
|
701
|
+
var _utils = __nccwpck_require__(1370);
|
|
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
|
+
1370: (__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;
|
|
@@ -8086,7 +8086,7 @@
|
|
|
8086
8086
|
"use strict";
|
|
8087
8087
|
module.exports = require("util");
|
|
8088
8088
|
},
|
|
8089
|
-
|
|
8089
|
+
6933: (module) => {
|
|
8090
8090
|
"use strict";
|
|
8091
8091
|
module.exports = JSON.parse(
|
|
8092
8092
|
'{"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"}',
|
|
@@ -8121,6 +8121,6 @@
|
|
|
8121
8121
|
}
|
|
8122
8122
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
8123
8123
|
__nccwpck_require__.ab = __dirname + "/";
|
|
8124
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
8124
|
+
var __webpack_exports__ = __nccwpck_require__(853);
|
|
8125
8125
|
module.exports = __webpack_exports__;
|
|
8126
8126
|
})();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
577: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(99)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
99: (__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__(928));
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(969));
|
|
13
|
+
var _utils = __nccwpck_require__(422);
|
|
14
14
|
function _interopRequireDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : { default: e };
|
|
16
16
|
}
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
422: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
928: (module) => {
|
|
313
313
|
module.exports = require("path");
|
|
314
314
|
},
|
|
315
|
-
|
|
315
|
+
969: (module) => {
|
|
316
316
|
module.exports = JSON.parse(
|
|
317
317
|
'{"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","anyOf":[{"type":"boolean"},{"type":"string","enum":["only"]}]},"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}',
|
|
318
318
|
);
|
|
@@ -340,6 +340,6 @@
|
|
|
340
340
|
}
|
|
341
341
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
342
342
|
__nccwpck_require__.ab = __dirname + "/";
|
|
343
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
343
|
+
var __webpack_exports__ = __nccwpck_require__(577);
|
|
344
344
|
module.exports = __webpack_exports__;
|
|
345
345
|
})();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
module.exports = callsites;
|
|
13
13
|
module.exports["default"] = callsites;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
9007: function (__unused_webpack_module, exports, __nccwpck_require__) {
|
|
16
16
|
"use strict";
|
|
17
17
|
var __importDefault =
|
|
18
18
|
(this && this.__importDefault) ||
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
return defaults_1.globalConfigSearchPlacesSync;
|
|
724
724
|
},
|
|
725
725
|
});
|
|
726
|
-
const Explorer_js_1 = __nccwpck_require__(
|
|
726
|
+
const Explorer_js_1 = __nccwpck_require__(9007);
|
|
727
727
|
const ExplorerSync_js_1 = __nccwpck_require__(575);
|
|
728
728
|
const util_1 = __nccwpck_require__(4515);
|
|
729
729
|
const identity = function identity(x) {
|
|
@@ -5319,19 +5319,19 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
1388: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(9586)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
9586: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
5327
5327
|
"use strict";
|
|
5328
5328
|
var __webpack_unused_export__;
|
|
5329
5329
|
__webpack_unused_export__ = { value: true };
|
|
5330
5330
|
exports["default"] = loader;
|
|
5331
5331
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(6760));
|
|
5332
5332
|
var _package = _interopRequireDefault(__nccwpck_require__(444));
|
|
5333
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
5334
|
-
var _utils = __nccwpck_require__(
|
|
5333
|
+
var _options = _interopRequireDefault(__nccwpck_require__(9266));
|
|
5334
|
+
var _utils = __nccwpck_require__(6867);
|
|
5335
5335
|
function _interopRequireDefault(e) {
|
|
5336
5336
|
return e && e.__esModule ? e : { default: e };
|
|
5337
5337
|
}
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
callback(null, result.css, map, { ast });
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
6867: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6620,7 +6620,7 @@
|
|
|
6620
6620
|
return keywords.has(word);
|
|
6621
6621
|
}
|
|
6622
6622
|
},
|
|
6623
|
-
|
|
6623
|
+
9266: (module) => {
|
|
6624
6624
|
"use strict";
|
|
6625
6625
|
module.exports = JSON.parse(
|
|
6626
6626
|
'{"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}',
|
|
@@ -6730,6 +6730,6 @@
|
|
|
6730
6730
|
})();
|
|
6731
6731
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6732
6732
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6733
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6733
|
+
var __webpack_exports__ = __nccwpck_require__(1388);
|
|
6734
6734
|
module.exports = __webpack_exports__;
|
|
6735
6735
|
})();
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
449: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(11);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
11: (__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 _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
4808
4808
|
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(136));
|
|
4809
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
4810
|
-
var _utils = __nccwpck_require__(
|
|
4809
|
+
var _options = _interopRequireDefault(__nccwpck_require__(237));
|
|
4810
|
+
var _utils = __nccwpck_require__(334);
|
|
4811
4811
|
function _interopRequireDefault(e) {
|
|
4812
4812
|
return e && e.__esModule ? e : { default: e };
|
|
4813
4813
|
}
|
|
@@ -4914,7 +4914,7 @@
|
|
|
4914
4914
|
}
|
|
4915
4915
|
var _default = (exports["default"] = loader);
|
|
4916
4916
|
},
|
|
4917
|
-
|
|
4917
|
+
334: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
4918
4918
|
"use strict";
|
|
4919
4919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4920
4920
|
exports.errorFactory = errorFactory;
|
|
@@ -5568,7 +5568,7 @@
|
|
|
5568
5568
|
"use strict";
|
|
5569
5569
|
module.exports = require("sass");
|
|
5570
5570
|
},
|
|
5571
|
-
|
|
5571
|
+
237: (module) => {
|
|
5572
5572
|
"use strict";
|
|
5573
5573
|
module.exports = JSON.parse(
|
|
5574
5574
|
'{"title":"Sass Loader options","type":"object","properties":{"implementation":{"description":"The implementation of the sass to be used.","link":"https://github.com/webpack/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/sass-loader#sassoptions","enum":["legacy","modern","modern-compiler"]},"sassOptions":{"description":"Options for `node-sass` or `sass` (`Dart Sass`) implementation.","link":"https://github.com/webpack/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/sass-loader#additionaldata","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack/sass-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack/sass-loader#webpackimporter","type":"boolean"},"warnRuleAsWarning":{"description":"Treats the \'@warn\' rule as a webpack warning.","link":"https://github.com/webpack/sass-loader#warnruleaswarning","type":"boolean"}},"additionalProperties":false}',
|
|
@@ -5598,6 +5598,6 @@
|
|
|
5598
5598
|
}
|
|
5599
5599
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
5600
5600
|
__nccwpck_require__.ab = __dirname + "/";
|
|
5601
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
5601
|
+
var __webpack_exports__ = __nccwpck_require__(449);
|
|
5602
5602
|
module.exports = __webpack_exports__;
|
|
5603
5603
|
})();
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
let lastTrackTime, lastFileInfo, logger;
|
|
2
2
|
import __rslib_shim_module__ from 'module';
|
|
3
3
|
let require = __rslib_shim_module__.createRequire(import.meta.url);
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as __rspack_external__compiled_launch_editor_index_js_29002383 from "../compiled/launch-editor/index.js";
|
|
5
|
+
import * as __rspack_external__compiled_webpack_merge_index_js_efd91626 from "../compiled/webpack-merge/index.js";
|
|
6
6
|
import { experiments, rspack } from "@rspack/core";
|
|
7
7
|
import node_readline from "node:readline";
|
|
8
8
|
import node_fs from "node:fs";
|
|
@@ -16,13 +16,14 @@ import { promisify } from "node:util";
|
|
|
16
16
|
import node_zlib from "node:zlib";
|
|
17
17
|
import { RspackDevServer } from "@rspack/dev-server";
|
|
18
18
|
import { exec, spawn } from "node:child_process";
|
|
19
|
+
import node_http from "node:http";
|
|
19
20
|
import chokidar from "chokidar";
|
|
20
21
|
var LogColor, __webpack_modules__ = {
|
|
21
22
|
"compiled/launch-editor": function(module) {
|
|
22
|
-
module.exports =
|
|
23
|
+
module.exports = __rspack_external__compiled_launch_editor_index_js_29002383;
|
|
23
24
|
},
|
|
24
25
|
"compiled/webpack-merge": function(module) {
|
|
25
|
-
module.exports =
|
|
26
|
+
module.exports = __rspack_external__compiled_webpack_merge_index_js_efd91626;
|
|
26
27
|
}
|
|
27
28
|
}, __webpack_module_cache__ = {};
|
|
28
29
|
function __webpack_require__(moduleId) {
|
|
@@ -117,7 +118,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
|
|
|
117
118
|
jsAsync: 'js/async/[name].[contenthash:8].js',
|
|
118
119
|
css: 'css/[name].[contenthash:8].css',
|
|
119
120
|
cssAsync: 'css/async/[name].[contenthash:8].css'
|
|
120
|
-
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only',
|
|
121
|
+
}, EXPORT_LOCALS_CONVENTION = 'camel-case-only', NODE_MODULES_REGEX = /[\\/]node_modules[\\/]/, THREAD_OPTIONS = {
|
|
121
122
|
workers: 2
|
|
122
123
|
}, DEFAULT_DEV_HOST = '0.0.0.0', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
123
124
|
<html lang="en">
|
|
@@ -137,7 +138,7 @@ let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULE
|
|
|
137
138
|
|
|
138
139
|
</html>`;
|
|
139
140
|
var utils_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
|
|
140
|
-
let { merge } = __webpack_require__("compiled/webpack-merge"), launchEditor = __webpack_require__("compiled/launch-editor"), getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
|
|
141
|
+
let { merge } = __webpack_require__("compiled/webpack-merge"), { default: launchEditor } = __webpack_require__("compiled/launch-editor"), getNodeEnv = ()=>process.env.NODE_ENV, setNodeEnv = (env)=>{
|
|
141
142
|
process.env.NODE_ENV = env;
|
|
142
143
|
}, setDevServer = (isDevServer)=>{
|
|
143
144
|
process.env.DEV_SERVER = isDevServer ? 'true' : 'false';
|
|
@@ -275,7 +276,42 @@ let isCSSModules = ({ resourcePath, modules })=>{
|
|
|
275
276
|
}[esVersion];
|
|
276
277
|
if (!browsers) throw Error(`Unsupported ES version: ${esVersion}`);
|
|
277
278
|
return browsers;
|
|
278
|
-
}
|
|
279
|
+
};
|
|
280
|
+
function pLimit(concurrency = Math.max(1, node_os.cpus().length - 1)) {
|
|
281
|
+
if (!(Number.isInteger(concurrency) && concurrency > 0)) throw TypeError('Expected `concurrency` to be a number greater than 0');
|
|
282
|
+
let queue = [], activeCount = 0, run = async (fn, resolve, reject, args)=>{
|
|
283
|
+
activeCount++;
|
|
284
|
+
let result = (async ()=>fn(...args))();
|
|
285
|
+
try {
|
|
286
|
+
let value = await result;
|
|
287
|
+
resolve(value);
|
|
288
|
+
} catch (err) {
|
|
289
|
+
reject(err);
|
|
290
|
+
} finally{
|
|
291
|
+
if (activeCount--, queue.length > 0) {
|
|
292
|
+
let task = queue.shift();
|
|
293
|
+
task?.();
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}, generator = (fn, ...args)=>new Promise((resolve, reject)=>{
|
|
297
|
+
let task = ()=>run(fn, resolve, reject, args);
|
|
298
|
+
activeCount < concurrency ? task() : queue.push(task);
|
|
299
|
+
});
|
|
300
|
+
return Object.defineProperties(generator, {
|
|
301
|
+
activeCount: {
|
|
302
|
+
get: ()=>activeCount
|
|
303
|
+
},
|
|
304
|
+
pendingCount: {
|
|
305
|
+
get: ()=>queue.length
|
|
306
|
+
},
|
|
307
|
+
clearQueue: {
|
|
308
|
+
value: ()=>{
|
|
309
|
+
queue.length = 0;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}), generator;
|
|
313
|
+
}
|
|
314
|
+
let logger_prefixes = {
|
|
279
315
|
wait: '○',
|
|
280
316
|
error: '⨯',
|
|
281
317
|
warn: '⚠',
|
|
@@ -641,7 +677,7 @@ class JsMinifyPlugin {
|
|
|
641
677
|
apply(compiler) {
|
|
642
678
|
let meta = JSON.stringify({
|
|
643
679
|
name: jsMinify_PLUGIN_NAME,
|
|
644
|
-
version: "3.
|
|
680
|
+
version: "3.6.0",
|
|
645
681
|
options: this.minifyOptions
|
|
646
682
|
});
|
|
647
683
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
@@ -1523,16 +1559,19 @@ function execAsync(command, options) {
|
|
|
1523
1559
|
});
|
|
1524
1560
|
});
|
|
1525
1561
|
}
|
|
1526
|
-
let getExternalLibraryName = (pkgName)=>
|
|
1562
|
+
let getExternalLibraryName = (pkgName)=>{
|
|
1563
|
+
let externalAlias = {
|
|
1527
1564
|
react: 'React',
|
|
1528
1565
|
'react-dom': 'ReactDOM',
|
|
1529
1566
|
'react-router-dom': 'ReactRouterDOM'
|
|
1530
|
-
}
|
|
1567
|
+
};
|
|
1568
|
+
return externalAlias[pkgName] ? externalAlias[pkgName] : pkgName.replace(/^@/, '').split(/[/\-.]/).filter(Boolean).map((part)=>part.charAt(0).toUpperCase() + part.slice(1)).join('');
|
|
1569
|
+
}, getExternalValue = (pkgName)=>`window ${getExternalLibraryName(pkgName)}`, prebundleDeps = async ({ unpackConfig })=>{
|
|
1531
1570
|
var externals;
|
|
1532
1571
|
let existExternals, cacheDir, count = {
|
|
1533
1572
|
total: 0,
|
|
1534
1573
|
bundled: 0
|
|
1535
|
-
}, failedDeps = [], root = unpackConfig.root, failedDepsCachePath = node_path.resolve(root,
|
|
1574
|
+
}, failedDeps = [], root = unpackConfig.root, CACHE_PATH = unpackConfig._context.cachePath, failedDepsCachePath = node_path.resolve(root, CACHE_PATH, 'failed-deps.json'), failedCache = node_fs.existsSync(failedDepsCachePath) ? JSON.parse(node_fs.readFileSync(failedDepsCachePath, 'utf-8')) : {}, updateProgress = ()=>{
|
|
1536
1575
|
logUpdate(`${colors.magenta('»')} optimizing dependencies (${count.bundled}/${count.total})`), count.total === count.bundled + failedDeps.length && console.log();
|
|
1537
1576
|
}, userOptions = isPlainObject(unpackConfig.dev?.prebundle) ? unpackConfig.dev.prebundle : {}, ignoreCSSDeps = userOptions.ignoreCSS || [], packageJson = JSON.parse(node_fs.readFileSync(node_path.resolve(root, 'package.json'), 'utf-8')), excludeDeps = [
|
|
1538
1577
|
...(externals = unpackConfig.externals, existExternals = new Set(), Array.isArray(externals) ? externals.forEach((item)=>{
|
|
@@ -1570,8 +1609,16 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1570
1609
|
entry: node_path.resolve(root, 'node_modules', pkgName, entry),
|
|
1571
1610
|
version
|
|
1572
1611
|
};
|
|
1573
|
-
}).filter(Boolean),
|
|
1574
|
-
|
|
1612
|
+
}).filter(Boolean), depExternals = Object.fromEntries(Array.from(new Set([
|
|
1613
|
+
'react',
|
|
1614
|
+
'react-dom',
|
|
1615
|
+
'react-router-dom',
|
|
1616
|
+
...Array.isArray(userOptions.externals) ? userOptions.externals : []
|
|
1617
|
+
])).map((pkg)=>[
|
|
1618
|
+
pkg,
|
|
1619
|
+
getExternalValue(pkg)
|
|
1620
|
+
])), bundledDeps = await Promise.all(needBundleDeps.map((depInfo)=>(({ name, entry, version })=>new Promise((resolve)=>{
|
|
1621
|
+
let pkgDir = node_path.resolve(root, CACHE_PATH, 'umd', name), outDir = node_path.resolve(pkgDir, version), getResult = ()=>({
|
|
1575
1622
|
name,
|
|
1576
1623
|
assets: globSync('**/index.{js,css}', {
|
|
1577
1624
|
cwd: outDir,
|
|
@@ -1675,11 +1722,7 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1675
1722
|
experiments: {
|
|
1676
1723
|
css: !0
|
|
1677
1724
|
},
|
|
1678
|
-
externals:
|
|
1679
|
-
react: getExternalValue('react'),
|
|
1680
|
-
'react-dom': getExternalValue('react-dom'),
|
|
1681
|
-
'react-router-dom': getExternalValue('react-router-dom')
|
|
1682
|
-
}
|
|
1725
|
+
externals: depExternals
|
|
1683
1726
|
});
|
|
1684
1727
|
compiler.run((_, stats)=>{
|
|
1685
1728
|
let isFailed = !1;
|
|
@@ -1691,13 +1734,28 @@ let getExternalLibraryName = (pkgName)=>({
|
|
|
1691
1734
|
cacheDir = node_path.dirname(failedDepsCachePath), node_fs.existsSync(cacheDir) || node_fs.mkdirSync(cacheDir, {
|
|
1692
1735
|
recursive: !0
|
|
1693
1736
|
}), node_fs.writeFileSync(failedDepsCachePath, JSON.stringify(failedCache, null, 2), 'utf-8'), failedDeps[0] && logger_logger.warn(`something went wrong while optimizing "${colors.bold(failedDeps.join(', '))}"`);
|
|
1694
|
-
let cachePath = node_path.resolve(root,
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1737
|
+
let cachePath = node_path.resolve(root, CACHE_PATH, 'umd'), staticServer = node_http.createServer((req, res)=>{
|
|
1738
|
+
if (res.setHeader('Access-Control-Allow-Origin', '*'), 'OPTIONS' === req.method) {
|
|
1739
|
+
res.writeHead(204), res.end();
|
|
1740
|
+
return;
|
|
1741
|
+
}
|
|
1742
|
+
let url = req.url || '';
|
|
1743
|
+
if (url.startsWith("/umd/")) {
|
|
1744
|
+
let relativePath = url.replace("/umd/", '');
|
|
1745
|
+
if (relativePath.includes('..')) {
|
|
1746
|
+
res.writeHead(403), res.end();
|
|
1747
|
+
return;
|
|
1748
|
+
}
|
|
1749
|
+
let filePath = node_path.join(cachePath, relativePath);
|
|
1750
|
+
if (node_fs.existsSync(filePath) && node_fs.statSync(filePath).isFile()) {
|
|
1751
|
+
let ext = node_path.extname(filePath);
|
|
1752
|
+
'.js' === ext && res.setHeader('Content-Type', "application/javascript"), '.css' === ext && res.setHeader('Content-Type', 'text/css'), node_fs.createReadStream(filePath).pipe(res);
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
res.writeHead(404), res.end();
|
|
1757
|
+
}), port = await getPort();
|
|
1758
|
+
staticServer.listen(port), addRestartCleaner(()=>new Promise((resolve)=>staticServer.close(()=>resolve(void 0))));
|
|
1701
1759
|
let externals1 = {}, jsAssets = [], cssAssets = [], preJsAssets = [];
|
|
1702
1760
|
return bundledDeps.filter(Boolean).forEach((dep)=>{
|
|
1703
1761
|
dep && (externals1[dep.name] = getExternalValue(dep.name), dep.assets.forEach((absPath)=>{
|
|
@@ -1779,7 +1837,7 @@ async function unpackDev(originalUnpackConfig) {
|
|
|
1779
1837
|
req.headers.accept?.includes('html') && (req.url = '/index.html'), next();
|
|
1780
1838
|
}), middlewares.unshift(experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1781
1839
|
let server = new RspackDevServer(devServerOptions, compiler);
|
|
1782
|
-
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.
|
|
1840
|
+
await server.start(), logger_logger.greet(` ${colors.brand(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.6.0`)} ${colors.dim('ready in')} ${colors.bold(Math.ceil(performance.now() - global.__unpack_start_time))} ${colors.dim('ms')}\n`), printAddressUrls(port, unpackConfig.server?.host), addRestartCleaner(()=>server.stop(), ()=>new Promise((resolve)=>compiler.close(()=>resolve())));
|
|
1783
1841
|
let open = unpackConfig.server?.open, url = isString(open) ? open : `http://localhost:${port}`;
|
|
1784
1842
|
open && openBrowser(url), setupCliShortcuts({
|
|
1785
1843
|
openPage: async ()=>{
|
|
@@ -1852,7 +1910,8 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1852
1910
|
...mergeConfig(defaultConfig, config),
|
|
1853
1911
|
_context: {
|
|
1854
1912
|
callerName,
|
|
1855
|
-
version: "3.
|
|
1913
|
+
version: "3.6.0",
|
|
1914
|
+
cachePath: 'node_modules/.unpack'
|
|
1856
1915
|
}
|
|
1857
1916
|
};
|
|
1858
1917
|
};
|
|
@@ -1860,7 +1919,7 @@ function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
|
1860
1919
|
build: async ({ watch } = {})=>{
|
|
1861
1920
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1862
1921
|
let config = resolveConfig();
|
|
1863
|
-
console.log(colors.brand(`${callerName} v3.
|
|
1922
|
+
console.log(colors.brand(`${callerName} v3.6.0`), colors.cyan(`building for ${getNodeEnv()}...`)), await unpackBuild(config);
|
|
1864
1923
|
},
|
|
1865
1924
|
dev: async ()=>{
|
|
1866
1925
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0);
|
|
@@ -1885,4 +1944,4 @@ async function createChokidar(pathOrGlobs, root = process.cwd(), options) {
|
|
|
1885
1944
|
var __webpack_exports__CSS_NAMED_EXPORT = !1;
|
|
1886
1945
|
import { fileURLToPath as __webpack_fileURLToPath__, pathToFileURL } from "node:url";
|
|
1887
1946
|
import node_path, { dirname as __webpack_dirname__, join, sep } from "node:path";
|
|
1888
|
-
export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT,
|
|
1947
|
+
export { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, DEFAULT_DEV_HOST, DEV_DEFAULT_FILENAME, EXPORT_LOCALS_CONVENTION, logger_LogColor as LogColor, NODE_MODULES_REGEX, PROD_DEFAULT_FILENAME, TEMPLATE_CONTENT, THREAD_OPTIONS, addRestartCleaner, cleanUpBeforeRestart, clearLine, colors, convertBasicAnsiColors, createChokidar, createUnpack, currentDevUnpackConfig, debounce, defineConfig, esVersionToBrowserslist, findExists, getAddressUrls, getCompiledPkgPath, getIpv4Interfaces, getNodeEnv, getPathInJs, getPort, getTime, getUserDepPath, getUserDepVersion, getValueByPath, isBoolean, utils_isCI as isCI, isCSSModules, isDebug, isDev, utils_isDevServer as isDevServer, isEmptyDir, isFileExists, isFileSync, isFunction, isNodeVersionAtLeast, isObject, isPlainObject, isProd, isRegExp, isString, isUndefined, isWatch, isWin, launchEditor, loadConfig, logUpdate, logger_logger as logger, mergeConfig, pLimit, pathExists, prettyTime, removeDir, resolveConfigPath, rspack, setCurrentDevUnpackConfig, setDevServer, setNodeEnv, setValueByPath, setupCliShortcuts, trackPerformance, __webpack_exports__CSS_NAMED_EXPORT as CSS_NAMED_EXPORT };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as __rspack_external__compiled_launch_editor_index_js_29002383 from "../compiled/launch-editor/index.js";
|
|
2
|
+
import * as __rspack_external__compiled_webpack_merge_index_js_efd91626 from "../compiled/webpack-merge/index.js";
|
|
3
3
|
import node_fs from "node:fs";
|
|
4
4
|
import node_path from "node:path";
|
|
5
5
|
import "node:net";
|
|
@@ -7,10 +7,10 @@ import "node:os";
|
|
|
7
7
|
import "portfinder";
|
|
8
8
|
var __webpack_modules__ = {
|
|
9
9
|
"compiled/launch-editor": function(module) {
|
|
10
|
-
module.exports =
|
|
10
|
+
module.exports = __rspack_external__compiled_launch_editor_index_js_29002383;
|
|
11
11
|
},
|
|
12
12
|
"compiled/webpack-merge": function(module) {
|
|
13
|
-
module.exports =
|
|
13
|
+
module.exports = __rspack_external__compiled_webpack_merge_index_js_efd91626;
|
|
14
14
|
}
|
|
15
15
|
}, __webpack_module_cache__ = {};
|
|
16
16
|
function __webpack_require__(moduleId) {
|
|
@@ -66,9 +66,7 @@ hexColor(COLOR_HEX.brand), hexColor(COLOR_HEX.red), hexColor(COLOR_HEX.green), h
|
|
|
66
66
|
code,
|
|
67
67
|
COLOR_HEX_TO_OPEN[hex]
|
|
68
68
|
]));
|
|
69
|
-
let { merge } = __webpack_require__("compiled/webpack-merge");
|
|
70
|
-
__webpack_require__("compiled/launch-editor");
|
|
71
|
-
let enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
|
|
69
|
+
let { merge } = __webpack_require__("compiled/webpack-merge"), { default: launchEditor } = __webpack_require__("compiled/launch-editor"), enforceLFLineSeparators = (text)=>text ? text.replace(/\r\n/g, '\n') : text;
|
|
72
70
|
function typedCssModulesLoader(content, ...rest) {
|
|
73
71
|
var keys;
|
|
74
72
|
let interfaceFields, bannerMessage, callback, dirName, baseName, filename, { failed, success } = (callback = this.async(), {
|
|
@@ -13,7 +13,6 @@ export declare const PROD_DEFAULT_FILENAME: {
|
|
|
13
13
|
cssAsync: string;
|
|
14
14
|
};
|
|
15
15
|
export declare const EXPORT_LOCALS_CONVENTION = "camel-case-only";
|
|
16
|
-
export declare const TEMP_DIR = "node_modules/.unpack";
|
|
17
16
|
export declare const NODE_MODULES_REGEX: RegExp;
|
|
18
17
|
export declare const CSS_NAMED_EXPORT = false;
|
|
19
18
|
export declare const THREAD_OPTIONS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,iBAAiB,QAAoB,CAAA;AAClD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,oCAAoC,CAAA;AAC7E,eAAO,MAAM,iBAAiB,QAAoB,CAAA;AAClD,eAAO,MAAM,oBAAoB;;;;;CAKhC,CAAA;AACD,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAA;AACD,eAAO,MAAM,wBAAwB,oBAAoB,CAAA;AACzD,eAAO,MAAM,kBAAkB,QAA2B,CAAA;AAC1D,eAAO,MAAM,gBAAgB,QAAQ,CAAA;AACrC,eAAO,MAAM,cAAc;;CAE1B,CAAA;AACD,eAAO,MAAM,gBAAgB,YAAY,CAAA;AACzC,eAAO,MAAM,gBAAgB,GAAI;;;;CAA0C,WAkB1E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,wBAAgB,YAAY,CAAC,EAC3B,GAAmB,EACnB,MAAM,EACN,UAAqB,GACtB,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;
|
|
1
|
+
{"version":3,"file":"createUnpack.d.ts","sourceRoot":"","sources":["../src/createUnpack.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,wBAAgB,YAAY,CAAC,EAC3B,GAAmB,EACnB,MAAM,EACN,UAAqB,GACtB,EAAE;IACD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;wBA+C4B;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;;EAiB/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"prebundleDeps.d.ts","sourceRoot":"","sources":["../src/prebundleDeps.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAU,YAAY,EAAE,MAAM,SAAS,CAAA;AAqFnD,eAAO,MAAM,aAAa,GAAU,mBAEjC;IACD,YAAY,EAAE,YAAY,CAAA;CAC3B,KAAG,OAAO,CAAC,YAAY,CAgUvB,CAAA"}
|
|
@@ -35,6 +35,11 @@ export type UnpackConfig = {
|
|
|
35
35
|
* The Unpack core version.
|
|
36
36
|
*/
|
|
37
37
|
version?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The path to the cache directory.
|
|
40
|
+
* @default "node_modules/.unpack"
|
|
41
|
+
*/
|
|
42
|
+
cachePath?: string;
|
|
38
43
|
};
|
|
39
44
|
/**
|
|
40
45
|
* @default process.cwd()
|
|
@@ -133,6 +138,10 @@ export type UnpackConfig = {
|
|
|
133
138
|
* Dependencies to exclude from prebundle.
|
|
134
139
|
*/
|
|
135
140
|
exclude?: string[];
|
|
141
|
+
/**
|
|
142
|
+
* Dependencies to external when prebundle.
|
|
143
|
+
*/
|
|
144
|
+
externals?: string[];
|
|
136
145
|
/**
|
|
137
146
|
* Ignore CSS files from specified dependencies in prebundle output.
|
|
138
147
|
*/
|