@unpackjs/core 2.1.0 → 2.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/compiled/css-loader/index.js +26 -26
- package/compiled/postcss-loader/index.js +11 -11
- package/dist/bundler-config/cache.cjs +105 -0
- package/dist/bundler-config/cache.d.ts +6 -0
- package/dist/bundler-config/cache.d.ts.map +1 -0
- package/dist/bundler-config/cache.js +63 -0
- package/dist/bundler-config/chunkSplit.js +7 -7
- package/dist/bundler-config/css.cjs +4 -3
- package/dist/bundler-config/css.d.ts.map +1 -1
- package/dist/bundler-config/css.js +33 -32
- package/dist/bundler-config/experimentCss.cjs +4 -3
- package/dist/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist/bundler-config/experimentCss.js +29 -28
- package/dist/bundler-config/{helper.cjs → helpers.cjs} +2 -2
- package/dist/bundler-config/{helper.d.ts → helpers.d.ts} +1 -1
- package/dist/bundler-config/helpers.d.ts.map +1 -0
- package/dist/bundler-config/helpers.js +39 -0
- package/dist/bundler-config/index.cjs +28 -17
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +69 -58
- package/dist/bundler-config/jsMinify.cjs +3 -3
- package/dist/bundler-config/jsMinify.d.ts +1 -9
- package/dist/bundler-config/jsMinify.d.ts.map +1 -1
- package/dist/bundler-config/jsMinify.js +7 -7
- package/dist/bundler-config/oxlint/.oxlintrc.json +30 -0
- package/dist/bundler-config/oxlint/plugin.cjs +143 -0
- package/dist/bundler-config/oxlint/plugin.d.ts +10 -0
- package/dist/bundler-config/oxlint/plugin.d.ts.map +1 -0
- package/dist/bundler-config/oxlint/plugin.js +104 -0
- package/dist/{plugin-progress/helper.cjs → bundler-config/progress/helpers.cjs} +9 -10
- package/dist/{plugin-progress/helper.d.ts → bundler-config/progress/helpers.d.ts} +1 -1
- package/dist/bundler-config/progress/helpers.d.ts.map +1 -0
- package/dist/bundler-config/progress/helpers.js +67 -0
- package/dist/{plugin-progress → bundler-config/progress}/rspack.cjs +10 -10
- package/dist/{plugin-progress → bundler-config/progress}/rspack.d.ts +2 -2
- package/dist/bundler-config/progress/rspack.d.ts.map +1 -0
- package/dist/bundler-config/progress/rspack.js +37 -0
- package/dist/{plugin-progress → bundler-config/progress}/webpack.cjs +13 -11
- package/dist/bundler-config/progress/webpack.d.ts +9 -0
- package/dist/bundler-config/progress/webpack.d.ts.map +1 -0
- package/dist/bundler-config/progress/webpack.js +44 -0
- package/dist/colors.cjs +3 -4
- package/dist/colors.d.ts +1 -2
- package/dist/colors.d.ts.map +1 -1
- package/dist/colors.js +3 -4
- package/dist/config.cjs +5 -2
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +19 -19
- package/dist/constants.cjs +8 -8
- package/dist/constants.js +2 -2
- package/dist/createUnpack.cjs +2 -12
- package/dist/createUnpack.js +19 -19
- package/dist/fs.cjs +82 -0
- package/dist/fs.d.ts +11 -0
- package/dist/fs.d.ts.map +1 -0
- package/dist/fs.js +28 -0
- package/dist/index.cjs +17 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -42
- package/dist/lightningcss/loader.cjs +0 -2
- package/dist/lightningcss/loader.d.ts.map +1 -1
- package/dist/lightningcss/loader.js +4 -6
- package/dist/lightningcss/minimizer.cjs +7 -9
- package/dist/lightningcss/minimizer.d.ts.map +1 -1
- package/dist/lightningcss/minimizer.js +9 -11
- package/dist/logger.cjs +5 -6
- package/dist/logger.js +12 -12
- package/dist/openBrowser.js +7 -7
- package/dist/prebundleDeps.cjs +5 -5
- package/dist/prebundleDeps.d.ts.map +1 -1
- package/dist/prebundleDeps.js +49 -48
- package/dist/progressBar.cjs +1 -11
- package/dist/progressBar.js +3 -3
- package/dist/reporter.cjs +11 -9
- package/dist/reporter.d.ts.map +1 -1
- package/dist/reporter.js +25 -22
- package/dist/run/build.js +8 -8
- package/dist/run/dev.cjs +3 -4
- package/dist/run/dev.d.ts.map +1 -1
- package/dist/run/dev.js +23 -23
- package/dist/typed-css-modules/loader.js +12 -12
- package/dist/typed-css-modules/plugin.cjs +1 -1
- package/dist/typed-css-modules/plugin.js +13 -13
- package/dist/typed-css-modules/utils.js +6 -6
- package/dist/types/config.d.ts +2 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/oxc.cjs +18 -0
- package/dist/types/oxc.d.ts +10 -0
- package/dist/types/oxc.d.ts.map +1 -0
- package/dist/types/oxc.js +2 -0
- package/dist/utils.cjs +26 -27
- package/dist/utils.js +16 -16
- package/dist/watchFiles.js +4 -4
- package/package.json +4 -4
- package/dist/bundler-config/helper.d.ts.map +0 -1
- package/dist/bundler-config/helper.js +0 -39
- package/dist/plugin-progress/helper.d.ts.map +0 -1
- package/dist/plugin-progress/helper.js +0 -67
- package/dist/plugin-progress/rspack.d.ts.map +0 -1
- package/dist/plugin-progress/rspack.js +0 -37
- package/dist/plugin-progress/webpack.d.ts +0 -8
- package/dist/plugin-progress/webpack.d.ts.map +0 -1
- package/dist/plugin-progress/webpack.js +0 -42
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports["default"] = loader;
|
|
14
14
|
var _postcss = _interopRequireDefault(__nccwpck_require__(1940));
|
|
15
|
-
var _package = _interopRequireDefault(__nccwpck_require__(
|
|
15
|
+
var _package = _interopRequireDefault(__nccwpck_require__(1187));
|
|
16
16
|
var _semver = __nccwpck_require__(5200);
|
|
17
17
|
var _options = _interopRequireDefault(__nccwpck_require__(505));
|
|
18
18
|
var _plugins = __nccwpck_require__(2631);
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"use strict";
|
|
280
280
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
281
281
|
exports["default"] = void 0;
|
|
282
|
-
var _icssUtils = __nccwpck_require__(
|
|
282
|
+
var _icssUtils = __nccwpck_require__(8989);
|
|
283
283
|
var _utils = __nccwpck_require__(4609);
|
|
284
284
|
const plugin = (options = {}) => ({
|
|
285
285
|
postcssPlugin: "postcss-icss-parser",
|
|
@@ -1074,16 +1074,16 @@
|
|
|
1074
1074
|
var _url = __nccwpck_require__(7016);
|
|
1075
1075
|
var _path = _interopRequireDefault(__nccwpck_require__(6928));
|
|
1076
1076
|
var _postcssModulesValues = _interopRequireDefault(
|
|
1077
|
-
__nccwpck_require__(
|
|
1077
|
+
__nccwpck_require__(1937),
|
|
1078
1078
|
);
|
|
1079
1079
|
var _postcssModulesLocalByDefault = _interopRequireDefault(
|
|
1080
|
-
__nccwpck_require__(
|
|
1080
|
+
__nccwpck_require__(6518),
|
|
1081
1081
|
);
|
|
1082
1082
|
var _postcssModulesExtractImports = _interopRequireDefault(
|
|
1083
|
-
__nccwpck_require__(
|
|
1083
|
+
__nccwpck_require__(3803),
|
|
1084
1084
|
);
|
|
1085
1085
|
var _postcssModulesScope = _interopRequireDefault(
|
|
1086
|
-
__nccwpck_require__(
|
|
1086
|
+
__nccwpck_require__(3160),
|
|
1087
1087
|
);
|
|
1088
1088
|
function _interopRequireDefault(obj) {
|
|
1089
1089
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -2276,7 +2276,7 @@
|
|
|
2276
2276
|
cssesc.version = "3.0.0";
|
|
2277
2277
|
module.exports = cssesc;
|
|
2278
2278
|
},
|
|
2279
|
-
|
|
2279
|
+
7816: (module) => {
|
|
2280
2280
|
const createImports = (imports, postcss, mode = "rule") =>
|
|
2281
2281
|
Object.keys(imports).map((path) => {
|
|
2282
2282
|
const aliases = imports[path];
|
|
@@ -2328,7 +2328,7 @@
|
|
|
2328
2328
|
];
|
|
2329
2329
|
module.exports = createICSSRules;
|
|
2330
2330
|
},
|
|
2331
|
-
|
|
2331
|
+
8710: (module) => {
|
|
2332
2332
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
2333
2333
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
2334
2334
|
const getDeclsObject = (rule) => {
|
|
@@ -2386,11 +2386,11 @@
|
|
|
2386
2386
|
};
|
|
2387
2387
|
module.exports = extractICSS;
|
|
2388
2388
|
},
|
|
2389
|
-
|
|
2390
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2391
|
-
const replaceSymbols = __nccwpck_require__(
|
|
2392
|
-
const extractICSS = __nccwpck_require__(
|
|
2393
|
-
const createICSSRules = __nccwpck_require__(
|
|
2389
|
+
8989: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2390
|
+
const replaceValueSymbols = __nccwpck_require__(5151);
|
|
2391
|
+
const replaceSymbols = __nccwpck_require__(5128);
|
|
2392
|
+
const extractICSS = __nccwpck_require__(8710);
|
|
2393
|
+
const createICSSRules = __nccwpck_require__(7816);
|
|
2394
2394
|
module.exports = {
|
|
2395
2395
|
replaceValueSymbols,
|
|
2396
2396
|
replaceSymbols,
|
|
@@ -2398,8 +2398,8 @@
|
|
|
2398
2398
|
createICSSRules,
|
|
2399
2399
|
};
|
|
2400
2400
|
},
|
|
2401
|
-
|
|
2402
|
-
const replaceValueSymbols = __nccwpck_require__(
|
|
2401
|
+
5128: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2402
|
+
const replaceValueSymbols = __nccwpck_require__(5151);
|
|
2403
2403
|
const replaceSymbols = (css, replacements) => {
|
|
2404
2404
|
css.walk((node) => {
|
|
2405
2405
|
if (node.type === "decl" && node.value) {
|
|
@@ -2422,7 +2422,7 @@
|
|
|
2422
2422
|
};
|
|
2423
2423
|
module.exports = replaceSymbols;
|
|
2424
2424
|
},
|
|
2425
|
-
|
|
2425
|
+
5151: (module) => {
|
|
2426
2426
|
const matchValueName = /[$]?[\w-]+/g;
|
|
2427
2427
|
const replaceValueSymbols = (value, replacements) => {
|
|
2428
2428
|
let matches;
|
|
@@ -2440,8 +2440,8 @@
|
|
|
2440
2440
|
};
|
|
2441
2441
|
module.exports = replaceValueSymbols;
|
|
2442
2442
|
},
|
|
2443
|
-
|
|
2444
|
-
const topologicalSort = __nccwpck_require__(
|
|
2443
|
+
3803: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2444
|
+
const topologicalSort = __nccwpck_require__(1788);
|
|
2445
2445
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
2446
2446
|
const icssImport = /^:import\((?:"([^"]+)"|'([^']+)')\)/;
|
|
2447
2447
|
const VISITED_MARKER = 1;
|
|
@@ -2587,7 +2587,7 @@
|
|
|
2587
2587
|
};
|
|
2588
2588
|
module.exports.postcss = true;
|
|
2589
2589
|
},
|
|
2590
|
-
|
|
2590
|
+
1788: (module) => {
|
|
2591
2591
|
const PERMANENT_MARKER = 2;
|
|
2592
2592
|
const TEMPORARY_MARKER = 1;
|
|
2593
2593
|
function createError(node, graph) {
|
|
@@ -2636,11 +2636,11 @@
|
|
|
2636
2636
|
}
|
|
2637
2637
|
module.exports = topologicalSort;
|
|
2638
2638
|
},
|
|
2639
|
-
|
|
2639
|
+
6518: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
2640
2640
|
"use strict";
|
|
2641
2641
|
const selectorParser = __nccwpck_require__(862);
|
|
2642
2642
|
const valueParser = __nccwpck_require__(2948);
|
|
2643
|
-
const { extractICSS } = __nccwpck_require__(
|
|
2643
|
+
const { extractICSS } = __nccwpck_require__(8989);
|
|
2644
2644
|
const isSpacing = (node) =>
|
|
2645
2645
|
node.type === "combinator" && node.value === " ";
|
|
2646
2646
|
function normalizeNodeArray(nodes) {
|
|
@@ -3151,7 +3151,7 @@
|
|
|
3151
3151
|
};
|
|
3152
3152
|
module.exports.postcss = true;
|
|
3153
3153
|
},
|
|
3154
|
-
|
|
3154
|
+
3160: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3155
3155
|
"use strict";
|
|
3156
3156
|
const selectorParser = __nccwpck_require__(862);
|
|
3157
3157
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -3458,9 +3458,9 @@
|
|
|
3458
3458
|
};
|
|
3459
3459
|
module.exports = plugin;
|
|
3460
3460
|
},
|
|
3461
|
-
|
|
3461
|
+
1937: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
3462
3462
|
"use strict";
|
|
3463
|
-
const ICSSUtils = __nccwpck_require__(
|
|
3463
|
+
const ICSSUtils = __nccwpck_require__(8989);
|
|
3464
3464
|
const matchImports =
|
|
3465
3465
|
/^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
3466
3466
|
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
|
|
@@ -7970,10 +7970,10 @@
|
|
|
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"}',
|
|
7971
7971
|
);
|
|
7972
7972
|
},
|
|
7973
|
-
|
|
7973
|
+
1187: (module) => {
|
|
7974
7974
|
"use strict";
|
|
7975
7975
|
module.exports = JSON.parse(
|
|
7976
|
-
'{"name":"postcss","version":"8.5.
|
|
7976
|
+
'{"name":"postcss","version":"8.5.5","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"import":"./lib/postcss.mjs","require":"./lib/postcss.js"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.11","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
|
|
7977
7977
|
);
|
|
7978
7978
|
},
|
|
7979
7979
|
};
|
|
@@ -5319,19 +5319,19 @@
|
|
|
5319
5319
|
module.exports = createColors();
|
|
5320
5320
|
module.exports.createColors = createColors;
|
|
5321
5321
|
},
|
|
5322
|
-
|
|
5322
|
+
3486: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5323
5323
|
"use strict";
|
|
5324
|
-
module.exports = __nccwpck_require__(
|
|
5324
|
+
module.exports = __nccwpck_require__(5684)["default"];
|
|
5325
5325
|
},
|
|
5326
|
-
|
|
5326
|
+
5684: (__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 _path = _interopRequireDefault(__nccwpck_require__(6928));
|
|
5332
|
-
var _package = _interopRequireDefault(__nccwpck_require__(
|
|
5333
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
5334
|
-
var _utils = __nccwpck_require__(
|
|
5332
|
+
var _package = _interopRequireDefault(__nccwpck_require__(1187));
|
|
5333
|
+
var _options = _interopRequireDefault(__nccwpck_require__(8189));
|
|
5334
|
+
var _utils = __nccwpck_require__(3837);
|
|
5335
5335
|
function _interopRequireDefault(obj) {
|
|
5336
5336
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
5337
5337
|
}
|
|
@@ -5509,7 +5509,7 @@
|
|
|
5509
5509
|
callback(null, result.css, map, { ast });
|
|
5510
5510
|
}
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
3837: (module, exports, __nccwpck_require__) => {
|
|
5513
5513
|
"use strict";
|
|
5514
5514
|
module = __nccwpck_require__.nmd(module);
|
|
5515
5515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6607,16 +6607,16 @@
|
|
|
6607
6607
|
return keywords.has(word);
|
|
6608
6608
|
}
|
|
6609
6609
|
},
|
|
6610
|
-
|
|
6610
|
+
8189: (module) => {
|
|
6611
6611
|
"use strict";
|
|
6612
6612
|
module.exports = JSON.parse(
|
|
6613
6613
|
'{"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}',
|
|
6614
6614
|
);
|
|
6615
6615
|
},
|
|
6616
|
-
|
|
6616
|
+
1187: (module) => {
|
|
6617
6617
|
"use strict";
|
|
6618
6618
|
module.exports = JSON.parse(
|
|
6619
|
-
'{"name":"postcss","version":"8.5.
|
|
6619
|
+
'{"name":"postcss","version":"8.5.5","description":"Tool for transforming styles with JS plugins","engines":{"node":"^10 || ^12 || >=14"},"exports":{".":{"import":"./lib/postcss.mjs","require":"./lib/postcss.js"},"./lib/at-rule":"./lib/at-rule.js","./lib/comment":"./lib/comment.js","./lib/container":"./lib/container.js","./lib/css-syntax-error":"./lib/css-syntax-error.js","./lib/declaration":"./lib/declaration.js","./lib/fromJSON":"./lib/fromJSON.js","./lib/input":"./lib/input.js","./lib/lazy-result":"./lib/lazy-result.js","./lib/no-work-result":"./lib/no-work-result.js","./lib/list":"./lib/list.js","./lib/map-generator":"./lib/map-generator.js","./lib/node":"./lib/node.js","./lib/parse":"./lib/parse.js","./lib/parser":"./lib/parser.js","./lib/postcss":"./lib/postcss.js","./lib/previous-map":"./lib/previous-map.js","./lib/processor":"./lib/processor.js","./lib/result":"./lib/result.js","./lib/root":"./lib/root.js","./lib/rule":"./lib/rule.js","./lib/stringifier":"./lib/stringifier.js","./lib/stringify":"./lib/stringify.js","./lib/symbols":"./lib/symbols.js","./lib/terminal-highlight":"./lib/terminal-highlight.js","./lib/tokenize":"./lib/tokenize.js","./lib/warn-once":"./lib/warn-once.js","./lib/warning":"./lib/warning.js","./package.json":"./package.json"},"main":"./lib/postcss.js","types":"./lib/postcss.d.ts","keywords":["css","postcss","rework","preprocessor","parser","source map","transform","manipulation","transpiler"],"funding":[{"type":"opencollective","url":"https://opencollective.com/postcss/"},{"type":"tidelift","url":"https://tidelift.com/funding/github/npm/postcss"},{"type":"github","url":"https://github.com/sponsors/ai"}],"author":"Andrey Sitnik <andrey@sitnik.ru>","license":"MIT","homepage":"https://postcss.org/","repository":"postcss/postcss","bugs":{"url":"https://github.com/postcss/postcss/issues"},"dependencies":{"nanoid":"^3.3.11","picocolors":"^1.1.1","source-map-js":"^1.2.1"},"browser":{"./lib/terminal-highlight":false,"source-map-js":false,"path":false,"url":false,"fs":false}}',
|
|
6620
6620
|
);
|
|
6621
6621
|
},
|
|
6622
6622
|
};
|
|
@@ -6717,6 +6717,6 @@
|
|
|
6717
6717
|
})();
|
|
6718
6718
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
6719
6719
|
__nccwpck_require__.ab = __dirname + "/";
|
|
6720
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
6720
|
+
var __webpack_exports__ = __nccwpck_require__(3486);
|
|
6721
6721
|
module.exports = __webpack_exports__;
|
|
6722
6722
|
})();
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
applyCacheConfig: ()=>applyCacheConfig
|
|
37
|
+
});
|
|
38
|
+
const external_node_path_namespaceObject = require("node:path");
|
|
39
|
+
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
40
|
+
const external_config_cjs_namespaceObject = require("../config.cjs");
|
|
41
|
+
const external_fs_cjs_namespaceObject = require("../fs.cjs");
|
|
42
|
+
const external_logger_cjs_namespaceObject = require("../logger.cjs");
|
|
43
|
+
const external_utils_cjs_namespaceObject = require("../utils.cjs");
|
|
44
|
+
async function getBuildDependencies(root, userBuildDependencies) {
|
|
45
|
+
const rootPackageJson = external_node_path_default().join(root, 'package.json');
|
|
46
|
+
const browserslistConfig = external_node_path_default().join(root, '.browserslistrc');
|
|
47
|
+
const tsconfigPath = external_node_path_default().join(root, 'tsconfig.json');
|
|
48
|
+
const buildDependencies = {};
|
|
49
|
+
if (await (0, external_fs_cjs_namespaceObject.isFileExists)(rootPackageJson)) buildDependencies.packageJson = [
|
|
50
|
+
rootPackageJson
|
|
51
|
+
];
|
|
52
|
+
if (await (0, external_fs_cjs_namespaceObject.isFileExists)(tsconfigPath)) buildDependencies.tsconfig = [
|
|
53
|
+
tsconfigPath
|
|
54
|
+
];
|
|
55
|
+
buildDependencies.unpackConfig = [
|
|
56
|
+
(0, external_config_cjs_namespaceObject.resolveConfigPath)(root)
|
|
57
|
+
];
|
|
58
|
+
if (await (0, external_fs_cjs_namespaceObject.isFileExists)(browserslistConfig)) buildDependencies.browserslistrc = [
|
|
59
|
+
browserslistConfig
|
|
60
|
+
];
|
|
61
|
+
const tailwindExts = [
|
|
62
|
+
'ts',
|
|
63
|
+
'js',
|
|
64
|
+
'cjs',
|
|
65
|
+
'mjs'
|
|
66
|
+
];
|
|
67
|
+
const configs = tailwindExts.map((ext)=>external_node_path_default().join(root, `tailwind.config.${ext}`));
|
|
68
|
+
const tailwindConfig = (0, external_fs_cjs_namespaceObject.findExists)(configs);
|
|
69
|
+
if (tailwindConfig) buildDependencies.tailwindcss = [
|
|
70
|
+
tailwindConfig
|
|
71
|
+
];
|
|
72
|
+
return {
|
|
73
|
+
...buildDependencies,
|
|
74
|
+
...userBuildDependencies
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
async function applyCacheConfig({ config, unpackConfig }) {
|
|
78
|
+
var _unpackConfig_build;
|
|
79
|
+
if (true === !(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache)) return config;
|
|
80
|
+
const isRspack = 'rspack' === unpackConfig.bundler;
|
|
81
|
+
const buildDependencies = await getBuildDependencies(unpackConfig.root);
|
|
82
|
+
external_logger_cjs_namespaceObject.logger.info('persistent cache enabled');
|
|
83
|
+
config = isRspack ? (0, external_utils_cjs_namespaceObject.mergeConfig)(config, {
|
|
84
|
+
cache: true,
|
|
85
|
+
experiments: {
|
|
86
|
+
cache: {
|
|
87
|
+
type: 'persistent',
|
|
88
|
+
buildDependencies: Object.values(buildDependencies).flat()
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}) : (0, external_utils_cjs_namespaceObject.mergeConfig)(config, {
|
|
92
|
+
cache: {
|
|
93
|
+
type: 'filesystem',
|
|
94
|
+
buildDependencies
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return config;
|
|
98
|
+
}
|
|
99
|
+
exports.applyCacheConfig = __webpack_exports__.applyCacheConfig;
|
|
100
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
101
|
+
"applyCacheConfig"
|
|
102
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
103
|
+
Object.defineProperty(exports, '__esModule', {
|
|
104
|
+
value: true
|
|
105
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BundlerConfiguration, UnpackConfig } from '../types/index';
|
|
2
|
+
export declare function applyCacheConfig({ config, unpackConfig, }: {
|
|
3
|
+
config: BundlerConfiguration;
|
|
4
|
+
unpackConfig: UnpackConfig;
|
|
5
|
+
}): Promise<BundlerConfiguration>;
|
|
6
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/bundler-config/cache.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAwCzE,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAwBhC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import __rslib_shim_module__ from 'module';
|
|
2
|
+
/*#__PURE__*/ import.meta.url;
|
|
3
|
+
import external_node_path_default from "node:path";
|
|
4
|
+
import { resolveConfigPath } from "../config.js";
|
|
5
|
+
import { findExists, isFileExists } from "../fs.js";
|
|
6
|
+
import { logger } from "../logger.js";
|
|
7
|
+
import { mergeConfig } from "../utils.js";
|
|
8
|
+
async function getBuildDependencies(root, userBuildDependencies) {
|
|
9
|
+
const rootPackageJson = external_node_path_default.join(root, 'package.json');
|
|
10
|
+
const browserslistConfig = external_node_path_default.join(root, '.browserslistrc');
|
|
11
|
+
const tsconfigPath = external_node_path_default.join(root, 'tsconfig.json');
|
|
12
|
+
const buildDependencies = {};
|
|
13
|
+
if (await isFileExists(rootPackageJson)) buildDependencies.packageJson = [
|
|
14
|
+
rootPackageJson
|
|
15
|
+
];
|
|
16
|
+
if (await isFileExists(tsconfigPath)) buildDependencies.tsconfig = [
|
|
17
|
+
tsconfigPath
|
|
18
|
+
];
|
|
19
|
+
buildDependencies.unpackConfig = [
|
|
20
|
+
resolveConfigPath(root)
|
|
21
|
+
];
|
|
22
|
+
if (await isFileExists(browserslistConfig)) buildDependencies.browserslistrc = [
|
|
23
|
+
browserslistConfig
|
|
24
|
+
];
|
|
25
|
+
const tailwindExts = [
|
|
26
|
+
'ts',
|
|
27
|
+
'js',
|
|
28
|
+
'cjs',
|
|
29
|
+
'mjs'
|
|
30
|
+
];
|
|
31
|
+
const configs = tailwindExts.map((ext)=>external_node_path_default.join(root, `tailwind.config.${ext}`));
|
|
32
|
+
const tailwindConfig = findExists(configs);
|
|
33
|
+
if (tailwindConfig) buildDependencies.tailwindcss = [
|
|
34
|
+
tailwindConfig
|
|
35
|
+
];
|
|
36
|
+
return {
|
|
37
|
+
...buildDependencies,
|
|
38
|
+
...userBuildDependencies
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
async function applyCacheConfig({ config, unpackConfig }) {
|
|
42
|
+
var _unpackConfig_build;
|
|
43
|
+
if (true === !(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache)) return config;
|
|
44
|
+
const isRspack = 'rspack' === unpackConfig.bundler;
|
|
45
|
+
const buildDependencies = await getBuildDependencies(unpackConfig.root);
|
|
46
|
+
logger.info('persistent cache enabled');
|
|
47
|
+
config = isRspack ? mergeConfig(config, {
|
|
48
|
+
cache: true,
|
|
49
|
+
experiments: {
|
|
50
|
+
cache: {
|
|
51
|
+
type: 'persistent',
|
|
52
|
+
buildDependencies: Object.values(buildDependencies).flat()
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}) : mergeConfig(config, {
|
|
56
|
+
cache: {
|
|
57
|
+
type: 'filesystem',
|
|
58
|
+
buildDependencies
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return config;
|
|
62
|
+
}
|
|
63
|
+
export { applyCacheConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __rslib_shim_module__ from 'module';
|
|
2
2
|
/*#__PURE__*/ import.meta.url;
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import external_node_assert_default from "node:assert";
|
|
4
|
+
import { NODE_MODULES_REGEX } from "../constants.js";
|
|
5
|
+
import { setValueByPath } from "../utils.js";
|
|
6
6
|
function getForceSplittingGroups(forceSplitting, strategy) {
|
|
7
7
|
const cacheGroups = {};
|
|
8
8
|
const pairs = Array.isArray(forceSplitting) ? forceSplitting.map((regexp, index)=>[
|
|
@@ -44,7 +44,7 @@ function splitByExperience(ctx) {
|
|
|
44
44
|
}
|
|
45
45
|
function splitBySize(ctx) {
|
|
46
46
|
const { forceSplittingGroups, defaultConfig, chunkSplit } = ctx;
|
|
47
|
-
(
|
|
47
|
+
external_node_assert_default('split-by-size' === chunkSplit.strategy);
|
|
48
48
|
return {
|
|
49
49
|
...defaultConfig,
|
|
50
50
|
minSize: chunkSplit.minSize ?? 0,
|
|
@@ -78,7 +78,7 @@ function splitByModule(ctx) {
|
|
|
78
78
|
...forceSplittingGroups,
|
|
79
79
|
vendors: {
|
|
80
80
|
priority: -9,
|
|
81
|
-
test:
|
|
81
|
+
test: NODE_MODULES_REGEX,
|
|
82
82
|
name (module) {
|
|
83
83
|
return module ? getPackageNameFromModulePath(module.context) : void 0;
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function singleVendor(ctx) {
|
|
|
103
103
|
const { defaultConfig, forceSplittingGroups } = ctx;
|
|
104
104
|
const singleVendorCacheGroup = {
|
|
105
105
|
singleVendor: {
|
|
106
|
-
test:
|
|
106
|
+
test: NODE_MODULES_REGEX,
|
|
107
107
|
priority: 0,
|
|
108
108
|
chunks: 'all',
|
|
109
109
|
name: 'vendor',
|
|
@@ -140,7 +140,7 @@ const applyChunkSplitConfig = ({ config, unpackConfig })=>{
|
|
|
140
140
|
forceSplittingGroups,
|
|
141
141
|
chunkSplit
|
|
142
142
|
});
|
|
143
|
-
|
|
143
|
+
setValueByPath(config, [
|
|
144
144
|
'optimization',
|
|
145
145
|
'splitChunks'
|
|
146
146
|
], splitChunksOptions);
|
|
@@ -42,7 +42,7 @@ const external_mini_css_extract_plugin_namespaceObject = require("mini-css-extra
|
|
|
42
42
|
var external_mini_css_extract_plugin_default = /*#__PURE__*/ __webpack_require__.n(external_mini_css_extract_plugin_namespaceObject);
|
|
43
43
|
const external_constants_cjs_namespaceObject = require("../constants.cjs");
|
|
44
44
|
const external_utils_cjs_namespaceObject = require("../utils.cjs");
|
|
45
|
-
const
|
|
45
|
+
const external_helpers_cjs_namespaceObject = require("./helpers.cjs");
|
|
46
46
|
function applyCssConfig({ config, unpackConfig }) {
|
|
47
47
|
var _unpackConfig_css, _unpackConfig_build, _unpackConfig_css1, _unpackConfig_css2, _config_module_rules, _config_module, _config_module_rules1, _config_module1, _unpackConfig_css3, _unpackConfig_css4, _config_module_rules2, _config_module2;
|
|
48
48
|
const MiniCssExtractPlugin = 'rspack' === unpackConfig.bundler ? core_namespaceObject.rspack.CssExtractRspackPlugin : external_mini_css_extract_plugin_default();
|
|
@@ -94,7 +94,7 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
94
94
|
if (!(0, external_utils_cjs_namespaceObject.isDevServer)()) {
|
|
95
95
|
var _unpackConfig_build1;
|
|
96
96
|
config.plugins.push(new MiniCssExtractPlugin({
|
|
97
|
-
filename: (0,
|
|
97
|
+
filename: (0, external_helpers_cjs_namespaceObject.getOutputFilename)({
|
|
98
98
|
type: 'css',
|
|
99
99
|
hash: null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.filenameHash
|
|
100
100
|
})
|
|
@@ -127,7 +127,8 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
127
127
|
return {
|
|
128
128
|
loader: external_node_path_default().resolve(__dirname, '../lightningcss/loader.cjs'),
|
|
129
129
|
options: (0, external_utils_cjs_namespaceObject.mergeConfig)((null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.lightningcss) || {}, {
|
|
130
|
-
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
130
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap,
|
|
131
|
+
targets: external_constants_cjs_namespaceObject.LIGHTNINGCSS_TARGET
|
|
131
132
|
})
|
|
132
133
|
};
|
|
133
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAWA,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,CAkIvB"}
|