@unpackjs/core 4.2.3 → 4.3.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/less-loader/index.js +35 -33
- package/compiled/less-loader/package.json +1 -1
- package/compiled/sass-loader/index.js +8 -8
- package/compiled/sass-loader/package.json +1 -1
- package/compiled/semver/index.js +164 -164
- package/compiled/semver/package.json +1 -1
- package/dist/index.js +73 -17
- package/dist-types/bundler-config/buildAnalyze.d.ts +3 -3
- package/dist-types/bundler-config/buildAnalyze.d.ts.map +1 -1
- package/dist-types/bundler-config/cache.d.ts +3 -3
- package/dist-types/bundler-config/cache.d.ts.map +1 -1
- package/dist-types/bundler-config/chunkSplit.d.ts +3 -3
- package/dist-types/bundler-config/chunkSplit.d.ts.map +1 -1
- package/dist-types/bundler-config/css.d.ts +3 -3
- package/dist-types/bundler-config/css.d.ts.map +1 -1
- package/dist-types/bundler-config/detectCircular.d.ts +3 -3
- package/dist-types/bundler-config/detectCircular.d.ts.map +1 -1
- package/dist-types/bundler-config/html.d.ts +3 -3
- package/dist-types/bundler-config/html.d.ts.map +1 -1
- package/dist-types/bundler-config/index.d.ts +2 -2
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/bundler-config/nativeCss.d.ts +3 -3
- package/dist-types/bundler-config/nativeCss.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/registerHooks.d.ts.map +1 -1
- package/dist-types/bundler-config/typeCheck.d.ts +3 -3
- package/dist-types/bundler-config/typeCheck.d.ts.map +1 -1
- package/dist-types/plugins/browserLogs.d.ts.map +1 -1
- package/dist-types/plugins/prebundle.d.ts.map +1 -1
- package/dist-types/progressBar.d.ts +2 -2
- package/dist-types/progressBar.d.ts.map +1 -1
- package/dist-types/run/dev.d.ts.map +1 -1
- package/dist-types/{loadingAnimation.d.ts → spinner.d.ts} +2 -2
- package/dist-types/spinner.d.ts.map +1 -0
- package/dist-types/types/chunkSplit.d.ts +3 -3
- package/dist-types/types/chunkSplit.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +23 -40
- package/dist-types/types/config.d.ts.map +1 -1
- package/dist-types/types/index.d.ts +2 -14
- package/dist-types/types/index.d.ts.map +1 -1
- package/dist-types/types/plugin.d.ts +20 -8
- package/dist-types/types/plugin.d.ts.map +1 -1
- package/dist-types/types/rspack.d.ts +3 -0
- package/dist-types/types/rspack.d.ts.map +1 -0
- package/dist-types/types/thirdParty.d.ts +42 -0
- package/dist-types/types/thirdParty.d.ts.map +1 -0
- package/dist-types/utils.d.ts +3 -2
- package/dist-types/utils.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist-types/loadingAnimation.d.ts.map +0 -1
- package/dist-types/types/oxc.d.ts +0 -10
- package/dist-types/types/oxc.d.ts.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
967: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(881)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
881: (__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
|
-
var
|
|
12
|
-
var _options = _interopRequireDefault(__nccwpck_require__(
|
|
13
|
-
var _utils = __nccwpck_require__(
|
|
11
|
+
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
12
|
+
var _options = _interopRequireDefault(__nccwpck_require__(247));
|
|
13
|
+
var _utils = __nccwpck_require__(964);
|
|
14
14
|
function _interopRequireDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : { default: e };
|
|
16
16
|
}
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
result = await implementation.render(data, lessOptions);
|
|
85
85
|
} catch (error) {
|
|
86
86
|
if (error.filename) {
|
|
87
|
-
this.addDependency(
|
|
87
|
+
this.addDependency(_nodePath.default.normalize(error.filename));
|
|
88
88
|
}
|
|
89
89
|
callback((0, _utils.errorFactory)(error));
|
|
90
90
|
return;
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
delete lessOptions.pluginManager;
|
|
95
95
|
}
|
|
96
96
|
const { css, imports } = result;
|
|
97
|
-
|
|
97
|
+
for (const item of imports) {
|
|
98
98
|
if ((0, _utils.isUnsupportedUrl)(item)) {
|
|
99
|
-
|
|
99
|
+
continue;
|
|
100
100
|
}
|
|
101
|
-
const normalizedItem =
|
|
102
|
-
if (
|
|
101
|
+
const normalizedItem = _nodePath.default.normalize(item);
|
|
102
|
+
if (_nodePath.default.isAbsolute(normalizedItem)) {
|
|
103
103
|
this.addDependency(normalizedItem);
|
|
104
104
|
}
|
|
105
|
-
}
|
|
105
|
+
}
|
|
106
106
|
let map =
|
|
107
107
|
typeof result.map === "string" ? JSON.parse(result.map) : result.map;
|
|
108
108
|
if (map && useSourceMap) {
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
}
|
|
113
113
|
var _default = (exports["default"] = lessLoader);
|
|
114
114
|
},
|
|
115
|
-
|
|
115
|
+
964: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
116
116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
117
117
|
exports.errorFactory = errorFactory;
|
|
118
118
|
exports.getLessImplementation = getLessImplementation;
|
|
119
119
|
exports.getLessOptions = getLessOptions;
|
|
120
120
|
exports.isUnsupportedUrl = isUnsupportedUrl;
|
|
121
121
|
exports.normalizeSourceMap = normalizeSourceMap;
|
|
122
|
-
var
|
|
122
|
+
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
123
123
|
function _interopRequireDefault(e) {
|
|
124
124
|
return e && e.__esModule ? e : { default: e };
|
|
125
125
|
}
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
}
|
|
169
169
|
async resolveRequests(context, possibleRequests) {
|
|
170
170
|
if (possibleRequests.length === 0) {
|
|
171
|
-
|
|
171
|
+
throw new Error("No possible requests to resolve");
|
|
172
172
|
}
|
|
173
173
|
let result;
|
|
174
174
|
try {
|
|
@@ -192,32 +192,34 @@
|
|
|
192
192
|
IS_SPECIAL_MODULE_IMPORT.test(filename) ||
|
|
193
193
|
lessOptions.webpackImporter === "only"
|
|
194
194
|
) {
|
|
195
|
-
const error = new Error();
|
|
195
|
+
const error = new Error("Next");
|
|
196
196
|
error.type = "Next";
|
|
197
197
|
throw error;
|
|
198
198
|
}
|
|
199
199
|
result = await super.loadFile(filename, ...args);
|
|
200
200
|
} catch (error) {
|
|
201
201
|
if (error.type !== "File" && error.type !== "Next") {
|
|
202
|
-
|
|
202
|
+
throw error;
|
|
203
203
|
}
|
|
204
204
|
try {
|
|
205
205
|
result = await this.resolveFilename(filename, ...args);
|
|
206
|
-
} catch (
|
|
206
|
+
} catch (err) {
|
|
207
207
|
error.message =
|
|
208
208
|
`Less resolver error:\n${error.message}\n\n` +
|
|
209
|
-
`Webpack resolver error details:\n${
|
|
210
|
-
`Webpack resolver error missing:\n${
|
|
211
|
-
|
|
209
|
+
`Webpack resolver error details:\n${err.details}\n\n` +
|
|
210
|
+
`Webpack resolver error missing:\n${err.missing}\n\n`;
|
|
211
|
+
throw error;
|
|
212
212
|
}
|
|
213
213
|
loaderContext.addDependency(result);
|
|
214
214
|
return super.loadFile(result, ...args);
|
|
215
215
|
}
|
|
216
|
-
const absoluteFilename =
|
|
216
|
+
const absoluteFilename = _nodePath.default.isAbsolute(
|
|
217
|
+
result.filename,
|
|
218
|
+
)
|
|
217
219
|
? result.filename
|
|
218
|
-
:
|
|
220
|
+
: _nodePath.default.resolve(".", result.filename);
|
|
219
221
|
loaderContext.addDependency(
|
|
220
|
-
|
|
222
|
+
_nodePath.default.normalize(absoluteFilename),
|
|
221
223
|
);
|
|
222
224
|
return result;
|
|
223
225
|
}
|
|
@@ -240,7 +242,7 @@
|
|
|
240
242
|
filename: loaderContext.resourcePath,
|
|
241
243
|
...options,
|
|
242
244
|
};
|
|
243
|
-
const plugins = lessOptions.plugins
|
|
245
|
+
const plugins = [...lessOptions.plugins];
|
|
244
246
|
const shouldUseWebpackImporter =
|
|
245
247
|
typeof loaderOptions.webpackImporter === "boolean" ||
|
|
246
248
|
loaderOptions.webpackImporter === "only"
|
|
@@ -271,7 +273,7 @@
|
|
|
271
273
|
delete newMap.file;
|
|
272
274
|
newMap.sourceRoot = "";
|
|
273
275
|
newMap.sources = newMap.sources.map((source) =>
|
|
274
|
-
|
|
276
|
+
_nodePath.default.normalize(source),
|
|
275
277
|
);
|
|
276
278
|
return newMap;
|
|
277
279
|
}
|
|
@@ -292,7 +294,7 @@
|
|
|
292
294
|
if (typeof excerpt[0] === "undefined") {
|
|
293
295
|
excerpt.shift();
|
|
294
296
|
}
|
|
295
|
-
excerpt.push(`${
|
|
297
|
+
excerpt.push(`${" ".repeat(column)}^`);
|
|
296
298
|
return excerpt;
|
|
297
299
|
}
|
|
298
300
|
function errorFactory(error) {
|
|
@@ -301,7 +303,7 @@
|
|
|
301
303
|
...getFileExcerptIfPossible(error),
|
|
302
304
|
error.message.charAt(0).toUpperCase() + error.message.slice(1),
|
|
303
305
|
error.filename
|
|
304
|
-
? ` Error in ${
|
|
306
|
+
? ` Error in ${_nodePath.default.normalize(error.filename)} (line ${error.line}, column ${error.column})`
|
|
305
307
|
: "",
|
|
306
308
|
].join("\n");
|
|
307
309
|
const obj = new Error(message, { cause: error });
|
|
@@ -309,12 +311,12 @@
|
|
|
309
311
|
return obj;
|
|
310
312
|
}
|
|
311
313
|
},
|
|
312
|
-
|
|
313
|
-
module.exports = require("path");
|
|
314
|
+
760: (module) => {
|
|
315
|
+
module.exports = require("node:path");
|
|
314
316
|
},
|
|
315
|
-
|
|
317
|
+
247: (module) => {
|
|
316
318
|
module.exports = JSON.parse(
|
|
317
|
-
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack
|
|
319
|
+
'{"title":"Less Loader options","type":"object","properties":{"lessOptions":{"description":"Options to pass through to `Less`.","link":"https://github.com/webpack/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/less-loader#additionalData","anyOf":[{"type":"string"},{"instanceof":"Function"}]},"sourceMap":{"description":"Enables/Disables generation of source maps.","link":"https://github.com/webpack/less-loader#sourcemap","type":"boolean"},"webpackImporter":{"description":"Enables/Disables default `webpack` importer.","link":"https://github.com/webpack/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/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/less-loader#lesslogaswarnorerr","type":"boolean"}},"additionalProperties":false}',
|
|
318
320
|
);
|
|
319
321
|
},
|
|
320
322
|
};
|
|
@@ -340,6 +342,6 @@
|
|
|
340
342
|
}
|
|
341
343
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
342
344
|
__nccwpck_require__.ab = __dirname + "/";
|
|
343
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
345
|
+
var __webpack_exports__ = __nccwpck_require__(967);
|
|
344
346
|
module.exports = __webpack_exports__;
|
|
345
347
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"less-loader","author":"Johannes Ewald @jhnns","version":"12.3.
|
|
1
|
+
{"name":"less-loader","author":"Johannes Ewald @jhnns","version":"12.3.1","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -4795,19 +4795,19 @@
|
|
|
4795
4795
|
}
|
|
4796
4796
|
});
|
|
4797
4797
|
},
|
|
4798
|
-
|
|
4798
|
+
3: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4799
4799
|
"use strict";
|
|
4800
|
-
const loader = __nccwpck_require__(
|
|
4800
|
+
const loader = __nccwpck_require__(197);
|
|
4801
4801
|
module.exports = loader.default;
|
|
4802
4802
|
},
|
|
4803
|
-
|
|
4803
|
+
197: (__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__(47));
|
|
4810
|
+
var _utils = __nccwpck_require__(944);
|
|
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
|
+
944: (__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
|
+
47: (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__(3);
|
|
5602
5602
|
module.exports = __webpack_exports__;
|
|
5603
5603
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sass-loader","author":"J. Tangelder","version":"16.0.
|
|
1
|
+
{"name":"sass-loader","author":"J. Tangelder","version":"16.0.7","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|