@unpackjs/core 2.4.5 → 3.1.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 +22 -22
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +8 -8
- package/dist/index.cjs +222 -256
- package/dist/index.js +215 -243
- package/dist/typedCssModulesLoader.mjs +4 -62
- package/dist-types/bundler-config/cache.d.ts.map +1 -1
- package/dist-types/bundler-config/css.d.ts.map +1 -1
- package/dist-types/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist-types/bundler-config/index.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/jsMinify.d.ts +2 -2
- package/dist-types/bundler-config/plugins/jsMinify.d.ts.map +1 -1
- package/dist-types/bundler-config/plugins/progress/{rspack.d.ts → index.d.ts} +1 -1
- package/dist-types/bundler-config/plugins/progress/index.d.ts.map +1 -0
- package/dist-types/bundler-config/plugins/typedCssModules.d.ts +1 -1
- package/dist-types/bundler-config/plugins/typedCssModules.d.ts.map +1 -1
- 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/index.d.ts +0 -2
- package/dist-types/index.d.ts.map +1 -1
- package/dist-types/logger.d.ts.map +1 -1
- package/dist-types/openBrowser.d.ts.map +1 -1
- package/dist-types/prebundleDeps.d.ts.map +1 -1
- package/dist-types/progressBar.d.ts +0 -1
- package/dist-types/progressBar.d.ts.map +1 -1
- package/dist-types/reporter.d.ts +1 -2
- package/dist-types/reporter.d.ts.map +1 -1
- package/dist-types/run/build.d.ts.map +1 -1
- package/dist-types/run/dev.d.ts.map +1 -1
- package/dist-types/types/config.d.ts +8 -9
- package/dist-types/types/config.d.ts.map +1 -1
- package/dist-types/types/index.d.ts +0 -1
- package/dist-types/types/index.d.ts.map +1 -1
- package/dist-types/utils.d.ts.map +1 -1
- package/package.json +4 -11
- package/dist/lightningcssLoader.mjs +0 -18
- package/dist-types/bundler-config/loaders/lightningcssLoader.d.ts +0 -5
- package/dist-types/bundler-config/loaders/lightningcssLoader.d.ts.map +0 -1
- package/dist-types/bundler-config/plugins/lightningcssMinify.d.ts +0 -10
- package/dist-types/bundler-config/plugins/lightningcssMinify.d.ts.map +0 -1
- package/dist-types/bundler-config/plugins/progress/rspack.d.ts.map +0 -1
- package/dist-types/bundler-config/plugins/progress/webpack.d.ts +0 -9
- package/dist-types/bundler-config/plugins/progress/webpack.d.ts.map +0 -1
- package/dist-types/types/lightningcss.d.ts +0 -11
- package/dist-types/types/lightningcss.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -51,7 +51,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
51
51
|
isWatch: ()=>isWatch,
|
|
52
52
|
isNodeVersionAtLeast: ()=>isNodeVersionAtLeast,
|
|
53
53
|
setNodeEnv: ()=>setNodeEnv,
|
|
54
|
-
DEFAULT_LIGHTNINGCSS_TARGET: ()=>DEFAULT_LIGHTNINGCSS_TARGET,
|
|
55
54
|
getCompiledPkgPath: ()=>getCompiledPkgPath,
|
|
56
55
|
LogColor: ()=>logger_LogColor,
|
|
57
56
|
isDebug: ()=>isDebug,
|
|
@@ -76,7 +75,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
76
75
|
getUserDepVersion: ()=>getUserDepVersion,
|
|
77
76
|
DEFAULT_BROWSERSLIST: ()=>DEFAULT_BROWSERSLIST,
|
|
78
77
|
NODE_MODULES_REGEX: ()=>NODE_MODULES_REGEX,
|
|
79
|
-
webpack: ()=>external_webpack_default(),
|
|
80
78
|
getTime: ()=>getTime,
|
|
81
79
|
getValueByPath: ()=>getValueByPath,
|
|
82
80
|
getIpv4Interfaces: ()=>getIpv4Interfaces,
|
|
@@ -99,16 +97,11 @@ for(var __webpack_i__ in (()=>{
|
|
|
99
97
|
trackPerformance: ()=>trackPerformance,
|
|
100
98
|
createUnpack: ()=>createUnpack,
|
|
101
99
|
getPort: ()=>getPort,
|
|
102
|
-
HtmlWebpackPlugin: ()=>external_html_webpack_plugin_default(),
|
|
103
100
|
getUserDepPath: ()=>getUserDepPath,
|
|
104
101
|
isCSSModules: ()=>isCSSModules,
|
|
105
102
|
rspack: ()=>core_namespaceObject.rspack
|
|
106
103
|
});
|
|
107
|
-
let core_namespaceObject = require("@rspack/core"),
|
|
108
|
-
var external_html_webpack_plugin_default = __webpack_require__.n(external_html_webpack_plugin_namespaceObject);
|
|
109
|
-
let external_webpack_namespaceObject = require("webpack");
|
|
110
|
-
var external_webpack_default = __webpack_require__.n(external_webpack_namespaceObject);
|
|
111
|
-
let external_picocolors_namespaceObject = require("picocolors"), colors = {
|
|
104
|
+
let core_namespaceObject = require("@rspack/core"), external_picocolors_namespaceObject = require("picocolors"), colors = {
|
|
112
105
|
...__webpack_require__.n(external_picocolors_namespaceObject)(),
|
|
113
106
|
rainbow: (input)=>{
|
|
114
107
|
let isWord = (char)=>!/[\s\n]/.test(char), chars = [
|
|
@@ -131,7 +124,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
131
124
|
var external_node_os_default = __webpack_require__.n(external_node_os_namespaceObject);
|
|
132
125
|
let external_portfinder_namespaceObject = require("portfinder");
|
|
133
126
|
var external_portfinder_default = __webpack_require__.n(external_portfinder_namespaceObject);
|
|
134
|
-
let
|
|
127
|
+
let CSS_MODULES_LOCAL_IDENT_NAME = '[path][name]__[local]--[hash:5]', CSS_MODULES_REGEX = /\.module\.\w+$/i, DEV_DEFAULT_FILENAME = {
|
|
135
128
|
js: 'js/[name].js',
|
|
136
129
|
jsAsync: 'js/async/[name].js',
|
|
137
130
|
css: 'css/[name].css',
|
|
@@ -148,7 +141,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
148
141
|
'edge >= 107',
|
|
149
142
|
'firefox >= 104',
|
|
150
143
|
'safari >= 16'
|
|
151
|
-
], DEFAULT_ES_TARGET = 'es2022',
|
|
144
|
+
], DEFAULT_ES_TARGET = 'es2022', TEMPLATE_CONTENT = ({ title = '', headTag = '', mountId = '' })=>`<!DOCTYPE html>
|
|
152
145
|
<html lang="en">
|
|
153
146
|
|
|
154
147
|
<head>
|
|
@@ -263,7 +256,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
263
256
|
global[k] = performance.now();
|
|
264
257
|
return;
|
|
265
258
|
}
|
|
266
|
-
msg &&
|
|
259
|
+
msg && console.log(` ${msg} ${colors.dim('in')} ${colors.yellow(`${(performance.now() - global[k]).toFixed(2)}ms`)}`), global[k] = performance.now();
|
|
267
260
|
}, getPathInJs = (absPath)=>JSON.stringify(absPath).slice(1, -1), mergeConfig = merge, getUserDepVersion = (root, dep)=>{
|
|
268
261
|
let depPath = getUserDepPath(root, dep);
|
|
269
262
|
if (depPath) return JSON.parse(external_node_fs_default().readFileSync(external_node_path_default().resolve(depPath, 'package.json'), 'utf-8')).version;
|
|
@@ -316,10 +309,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
316
309
|
text = colors.yellow(message);
|
|
317
310
|
break;
|
|
318
311
|
case 'debug':
|
|
319
|
-
text = `${colors.dim((()
|
|
320
|
-
let now = new Date(), hours = now.getHours().toString().padStart(2, '0'), minutes = now.getMinutes().toString().padStart(2, '0'), seconds = now.getSeconds().toString().padStart(2, '0');
|
|
321
|
-
return `${hours}:${minutes}:${seconds}`;
|
|
322
|
-
})())} ${colors.magenta('debug')} ${message}`;
|
|
312
|
+
text = `${colors.dim(getTime())} ${colors.magenta('debug')} ${message}`;
|
|
323
313
|
break;
|
|
324
314
|
default:
|
|
325
315
|
text = message;
|
|
@@ -334,15 +324,15 @@ for(var __webpack_i__ in (()=>{
|
|
|
334
324
|
let root = (null == cliOptions ? void 0 : cliOptions.root) ? external_node_path_default().resolve(cliOptions.root) : process.cwd(), configFilePath = resolveConfigPath(root, null == cliOptions ? void 0 : cliOptions.config), configExport = {};
|
|
335
325
|
if (configFilePath) {
|
|
336
326
|
if (isNodeVersionAtLeast(23, 6) || /\.(?:js|mjs|cjs)$/.test(configFilePath)) {
|
|
337
|
-
logger_logger.debug('
|
|
327
|
+
logger_logger.debug('loading config file with native loader:', colors.dim(configFilePath));
|
|
338
328
|
try {
|
|
339
329
|
let configFileURL = (0, external_node_url_namespaceObject.pathToFileURL)(configFilePath).href, exportModule = await import(`${configFileURL}?t=${Date.now()}`);
|
|
340
330
|
configExport = exportModule.default ? exportModule.default : exportModule;
|
|
341
331
|
} catch (err) {
|
|
342
|
-
throw logger_logger.error(
|
|
332
|
+
throw logger_logger.error('failed to load config file with native loader:', colors.dim(configFilePath)), err;
|
|
343
333
|
}
|
|
344
334
|
} else {
|
|
345
|
-
logger_logger.debug('
|
|
335
|
+
logger_logger.debug('loading config file with jiti:', colors.dim(configFilePath));
|
|
346
336
|
try {
|
|
347
337
|
let jiti = (0, external_jiti_namespaceObject.createJiti)(__filename, {
|
|
348
338
|
moduleCache: !1,
|
|
@@ -356,7 +346,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
356
346
|
default: !0
|
|
357
347
|
});
|
|
358
348
|
} catch (err) {
|
|
359
|
-
throw logger_logger.error(
|
|
349
|
+
throw logger_logger.error('failed to load config file with jiti:', colors.dim(configFilePath)), err;
|
|
360
350
|
}
|
|
361
351
|
}
|
|
362
352
|
if ('function' == typeof configExport) {
|
|
@@ -364,7 +354,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
364
354
|
env: getNodeEnv(),
|
|
365
355
|
command: process.argv[2]
|
|
366
356
|
};
|
|
367
|
-
if (void 0 === (configExport = await configExport(params))) throw Error('
|
|
357
|
+
if (void 0 === (configExport = await configExport(params))) throw Error('unpack config function must return a config object.');
|
|
368
358
|
}
|
|
369
359
|
}
|
|
370
360
|
return (null == cliOptions ? void 0 : cliOptions.port) && setValueByPath(configExport, [
|
|
@@ -408,17 +398,13 @@ for(var __webpack_i__ in (()=>{
|
|
|
408
398
|
plugin[hook] && pluginMap.set(plugin.name, plugin);
|
|
409
399
|
}), Array.from(pluginMap.values());
|
|
410
400
|
}
|
|
411
|
-
let external_copy_webpack_plugin_namespaceObject = require("copy-webpack-plugin");
|
|
412
|
-
var external_copy_webpack_plugin_default = __webpack_require__.n(external_copy_webpack_plugin_namespaceObject);
|
|
413
|
-
let external_json5_namespaceObject = require("json5");
|
|
414
|
-
var external_json5_default = __webpack_require__.n(external_json5_namespaceObject);
|
|
415
401
|
let external_dotenv_expand_namespaceObject = require("dotenv-expand"), isFileSync = (filePath)=>{
|
|
416
402
|
try {
|
|
417
403
|
var _fs_statSync;
|
|
418
404
|
return null == (_fs_statSync = external_node_fs_default().statSync(filePath, {
|
|
419
405
|
throwIfNoEntry: !1
|
|
420
406
|
})) ? void 0 : _fs_statSync.isFile();
|
|
421
|
-
} catch
|
|
407
|
+
} catch {
|
|
422
408
|
return !1;
|
|
423
409
|
}
|
|
424
410
|
};
|
|
@@ -469,8 +455,8 @@ for(var __webpack_i__ in (()=>{
|
|
|
469
455
|
async function applyCacheConfig({ config, unpackConfig, envFilePaths }) {
|
|
470
456
|
var _unpackConfig_build, _unpackConfig_dev;
|
|
471
457
|
if (!(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache) || utils_isDevServer() && (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation)) return config;
|
|
472
|
-
let cacheConfig = isPlainObject(unpackConfig.build.cache) ? unpackConfig.build.cache : {},
|
|
473
|
-
return cacheDirectory && (cacheDirectory = external_node_path_default().resolve(unpackConfig.root, cacheDirectory)), logger_logger.info('persistent cache enabled'), config =
|
|
458
|
+
let cacheConfig = isPlainObject(unpackConfig.build.cache) ? unpackConfig.build.cache : {}, buildDependencies = await getBuildDependencies(unpackConfig.root, cacheConfig.buildDependencies || [], envFilePaths), cacheDirectory = cacheConfig.cacheDirectory;
|
|
459
|
+
return cacheDirectory && (cacheDirectory = external_node_path_default().resolve(unpackConfig.root, cacheDirectory)), logger_logger.info('persistent cache enabled'), config = mergeConfig(config, {
|
|
474
460
|
cache: !0,
|
|
475
461
|
experiments: {
|
|
476
462
|
cache: {
|
|
@@ -482,12 +468,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
482
468
|
}
|
|
483
469
|
}
|
|
484
470
|
}
|
|
485
|
-
}) : mergeConfig(config, {
|
|
486
|
-
cache: {
|
|
487
|
-
type: 'filesystem',
|
|
488
|
-
buildDependencies,
|
|
489
|
-
cacheDirectory
|
|
490
|
-
}
|
|
491
471
|
});
|
|
492
472
|
}
|
|
493
473
|
let external_node_assert_namespaceObject = require("node:assert");
|
|
@@ -583,9 +563,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
583
563
|
}
|
|
584
564
|
};
|
|
585
565
|
}
|
|
586
|
-
},
|
|
587
|
-
var external_mini_css_extract_plugin_default = __webpack_require__.n(external_mini_css_extract_plugin_namespaceObject);
|
|
588
|
-
let external_tinyglobby_namespaceObject = require("tinyglobby");
|
|
566
|
+
}, external_tinyglobby_namespaceObject = require("tinyglobby");
|
|
589
567
|
async function getEntry(root, customEntry) {
|
|
590
568
|
let entry;
|
|
591
569
|
return entry = customEntry ? external_node_path_default().resolve(root, customEntry) : (await (0, external_tinyglobby_namespaceObject.glob)('(index|Index).{js,ts,jsx,tsx}', {
|
|
@@ -661,19 +639,18 @@ for(var __webpack_i__ in (()=>{
|
|
|
661
639
|
writable: !0
|
|
662
640
|
}) : obj[key] = value, obj;
|
|
663
641
|
}
|
|
664
|
-
let { RawSource
|
|
642
|
+
let { RawSource, SourceMapSource } = core_namespaceObject.rspack.sources, isJsFile = /\.[cm]?js(\?.*)?$/i, jsMinify_PLUGIN_NAME = 'JsMinifyPlugin';
|
|
665
643
|
class JsMinifyPlugin {
|
|
666
644
|
apply(compiler) {
|
|
667
645
|
let meta = JSON.stringify({
|
|
668
646
|
name: jsMinify_PLUGIN_NAME,
|
|
669
|
-
version: "
|
|
647
|
+
version: "3.1.0",
|
|
670
648
|
options: this.minifyOptions
|
|
671
649
|
});
|
|
672
650
|
compiler.hooks.compilation.tap(jsMinify_PLUGIN_NAME, (compilation)=>{
|
|
673
|
-
compilation.hooks.chunkHash.tap(jsMinify_PLUGIN_NAME, (_, hash)=>hash.update(meta)), compilation.hooks.processAssets.tap({
|
|
651
|
+
compilation.hooks.chunkHash.tap(jsMinify_PLUGIN_NAME, (_, hash)=>hash.update(Buffer.from(meta))), compilation.hooks.processAssets.tap({
|
|
674
652
|
name: jsMinify_PLUGIN_NAME,
|
|
675
|
-
stage: compiler.
|
|
676
|
-
additionalAssets: !0
|
|
653
|
+
stage: compiler.rspack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE
|
|
677
654
|
}, ()=>this.transformAssets(compilation)), compilation.hooks.statsPrinter.tap(jsMinify_PLUGIN_NAME, (stats)=>{
|
|
678
655
|
stats.hooks.print.for('asset.info.minimized').tap(jsMinify_PLUGIN_NAME, (minimized, { green, formatFlag })=>minimized && green && formatFlag ? green(formatFlag('minimized')) : '');
|
|
679
656
|
});
|
|
@@ -689,7 +666,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
689
666
|
output.map && ((newMap = 'string' == typeof output.map ? JSON.parse(output.map) : output.map).sources = [
|
|
690
667
|
asset.name
|
|
691
668
|
]);
|
|
692
|
-
let newSource = sourceMap && newMap ? new
|
|
669
|
+
let newSource = sourceMap && newMap ? new SourceMapSource(output.code, asset.name, newMap, source, map, !0) : new RawSource(output.code), newInfo = {
|
|
693
670
|
...asset.info,
|
|
694
671
|
minimized: !0
|
|
695
672
|
};
|
|
@@ -702,49 +679,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
702
679
|
this.minify = (null == implementation ? void 0 : implementation.minify) ?? external_oxc_minify_namespaceObject.minify, this.minifyOptions = minifyOptions;
|
|
703
680
|
}
|
|
704
681
|
}
|
|
705
|
-
let external_node_buffer_namespaceObject = require("node:buffer");
|
|
706
|
-
function lightningcssMinify_define_property(obj, key, value) {
|
|
707
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
708
|
-
value: value,
|
|
709
|
-
enumerable: !0,
|
|
710
|
-
configurable: !0,
|
|
711
|
-
writable: !0
|
|
712
|
-
}) : obj[key] = value, obj;
|
|
713
|
-
}
|
|
714
|
-
let lightningcssMinify_PLUGIN_NAME = 'LightningcssMinifyPlugin';
|
|
715
|
-
class LightningcssMinifyPlugin {
|
|
716
|
-
apply(compiler) {
|
|
717
|
-
compiler.hooks.compilation.tap(lightningcssMinify_PLUGIN_NAME, (compilation)=>{
|
|
718
|
-
compilation.hooks.processAssets.tap({
|
|
719
|
-
name: lightningcssMinify_PLUGIN_NAME,
|
|
720
|
-
stage: compiler.webpack.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_SIZE
|
|
721
|
-
}, ()=>this.transformAssets(compilation)), compilation.hooks.statsPrinter.tap(lightningcssMinify_PLUGIN_NAME, (statsPrinter)=>{
|
|
722
|
-
statsPrinter.hooks.print.for('asset.info.minimized').tap(lightningcssMinify_PLUGIN_NAME, (minimized, { green, formatFlag })=>minimized && green && formatFlag ? green(formatFlag('minimized')) : '');
|
|
723
|
-
});
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
transformAssets(compilation) {
|
|
727
|
-
let { options: { devtool }, webpack: { sources: { SourceMapSource, RawSource } } } = compilation.compiler, sourceMap = 'string' == typeof devtool && devtool.includes('source-map');
|
|
728
|
-
compilation.getAssets().filter((asset)=>!asset.info.minimized && /\.css$/.test(asset.name)).map((asset)=>{
|
|
729
|
-
let { source, map } = asset.source.sourceAndMap(), sourceAsString = source.toString(), code = 'string' == typeof source ? external_node_buffer_namespaceObject.Buffer.from(source) : source, result = this.transform({
|
|
730
|
-
filename: asset.name,
|
|
731
|
-
code,
|
|
732
|
-
minify: !0,
|
|
733
|
-
sourceMap,
|
|
734
|
-
...this.transformOptions
|
|
735
|
-
}), codeString = result.code.toString();
|
|
736
|
-
compilation.updateAsset(asset.name, sourceMap ? new SourceMapSource(codeString, asset.name, JSON.parse(result.map.toString()), sourceAsString, map, !0) : new RawSource(codeString), {
|
|
737
|
-
...asset.info,
|
|
738
|
-
minimized: !0
|
|
739
|
-
});
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
constructor(options = {}){
|
|
743
|
-
lightningcssMinify_define_property(this, "transform", void 0), lightningcssMinify_define_property(this, "transformOptions", void 0);
|
|
744
|
-
let { implementation, ...transformOptions } = options;
|
|
745
|
-
this.transform = (null == implementation ? void 0 : implementation.transform) ?? external_lightningcss_namespaceObject.transform, this.transformOptions = transformOptions;
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
682
|
let external_node_child_process_namespaceObject = require("node:child_process");
|
|
749
683
|
function oxlint_define_property(obj, key, value) {
|
|
750
684
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -867,10 +801,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
867
801
|
let { columns: terminalWidth } = process.stdout, current = originalCurrent;
|
|
868
802
|
originalCurrent >= 0.98 && (current = 1);
|
|
869
803
|
let loadingChar = this.loadingAnimation.getCurrentChar(), messageWidth = terminalWidth - this.prefix.length - (1 === current ? 10 : 9);
|
|
870
|
-
logUpdate(`${loadingChar} ${this.prefix} (${Math.floor(100 * current)}%) ${colors.dim(message.slice(0, messageWidth).padEnd(messageWidth, ' '))}`);
|
|
871
|
-
}
|
|
872
|
-
done() {
|
|
873
|
-
console.log();
|
|
804
|
+
logUpdate(`${loadingChar} ${this.prefix} (${Math.floor(100 * current)}%) ${colors.dim(message.slice(0, messageWidth).padEnd(messageWidth, ' '))}`), 1 === current && clearLine();
|
|
874
805
|
}
|
|
875
806
|
constructor(){
|
|
876
807
|
progressBar_define_property(this, "prefix", 'transforming'), progressBar_define_property(this, "loadingAnimation", new LoadingAnimation());
|
|
@@ -936,6 +867,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
936
867
|
chunkGroupMap.CSS.chunks.push(chunk);
|
|
937
868
|
break;
|
|
938
869
|
case '.js':
|
|
870
|
+
case '.wasm':
|
|
939
871
|
chunkGroupMap.JS.chunks.push(chunk);
|
|
940
872
|
break;
|
|
941
873
|
default:
|
|
@@ -1008,23 +940,23 @@ for(var __webpack_i__ in (()=>{
|
|
|
1008
940
|
logger_logger.ready(`built in ${prettyTime(compileTime)}${isDebug() ? ` (${stats.compilation.modules.size} modules)` : ''}`);
|
|
1009
941
|
}
|
|
1010
942
|
}
|
|
1011
|
-
let
|
|
943
|
+
let progress_PLUGIN_NAME = 'ProgressPlugin';
|
|
1012
944
|
class ProgressLiteRspackPlugin {
|
|
1013
945
|
apply(compiler) {
|
|
1014
|
-
compiler.hooks.watchRun.tap(
|
|
946
|
+
compiler.hooks.watchRun.tap(progress_PLUGIN_NAME, ()=>{
|
|
1015
947
|
(!utils_isDevServer() || global.__unpack_dev_server_started) && printDevLog(compiler, compiler.options.context);
|
|
1016
|
-
}), compiler.hooks.run.tap(
|
|
948
|
+
}), compiler.hooks.run.tap(progress_PLUGIN_NAME, ()=>{
|
|
1017
949
|
logger_logger.info('build started...');
|
|
1018
|
-
}), compiler.hooks.afterDone.tap(
|
|
950
|
+
}), compiler.hooks.afterDone.tap(progress_PLUGIN_NAME, async (stats)=>{
|
|
1019
951
|
await compileDone(compiler, stats);
|
|
1020
952
|
});
|
|
1021
953
|
}
|
|
1022
954
|
}
|
|
1023
955
|
class ProgressRspackPlugin extends core_namespaceObject.rspack.ProgressPlugin {
|
|
1024
956
|
apply(compiler) {
|
|
1025
|
-
super.apply(compiler), compiler.hooks.watchRun.tap(
|
|
957
|
+
super.apply(compiler), compiler.hooks.watchRun.tap(progress_PLUGIN_NAME, ()=>{
|
|
1026
958
|
(!utils_isDevServer() || global.__unpack_dev_server_started) && printDevLog(compiler, compiler.options.context);
|
|
1027
|
-
}), compiler.hooks.afterDone.tap(
|
|
959
|
+
}), compiler.hooks.afterDone.tap(progress_PLUGIN_NAME, async (stats)=>{
|
|
1028
960
|
await compileDone(compiler, stats);
|
|
1029
961
|
});
|
|
1030
962
|
}
|
|
@@ -1044,41 +976,10 @@ for(var __webpack_i__ in (()=>{
|
|
|
1044
976
|
}(this, "progressBar", new ProgressBar());
|
|
1045
977
|
}
|
|
1046
978
|
}
|
|
1047
|
-
function webpack_define_property(obj, key, value) {
|
|
1048
|
-
return key in obj ? Object.defineProperty(obj, key, {
|
|
1049
|
-
value: value,
|
|
1050
|
-
enumerable: !0,
|
|
1051
|
-
configurable: !0,
|
|
1052
|
-
writable: !0
|
|
1053
|
-
}) : obj[key] = value, obj;
|
|
1054
|
-
}
|
|
1055
|
-
let webpack_PLUGIN_NAME = 'ProgressPlugin';
|
|
1056
|
-
class ProgressWebpackPlugin extends external_webpack_default().ProgressPlugin {
|
|
1057
|
-
apply(compiler) {
|
|
1058
|
-
super.apply(compiler), compiler.hooks.watchRun.tap(webpack_PLUGIN_NAME, ()=>{
|
|
1059
|
-
(!utils_isDevServer() || global.__unpack_dev_server_started) && printDevLog(compiler, compiler.options.context);
|
|
1060
|
-
}), compiler.hooks.afterDone.tap(webpack_PLUGIN_NAME, async (stats)=>{
|
|
1061
|
-
this.isCompleted = !0, await compileDone(compiler, stats);
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
constructor(){
|
|
1065
|
-
super({
|
|
1066
|
-
entries: !1,
|
|
1067
|
-
dependencies: !1,
|
|
1068
|
-
activeModules: !0,
|
|
1069
|
-
handler: isProd() ? (percentage, msg, ...args)=>{
|
|
1070
|
-
this.isCompleted || this.progressBar.update({
|
|
1071
|
-
current: percentage,
|
|
1072
|
-
message: `${msg} ${args.join(' ').replace(/(\d+) active /, '')}`
|
|
1073
|
-
});
|
|
1074
|
-
} : void 0
|
|
1075
|
-
}), webpack_define_property(this, "progressBar", new ProgressBar()), webpack_define_property(this, "isCompleted", !1);
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
979
|
let BundleAnalyzerPlugin = __webpack_require__("compiled/webpack-bundle-analyzer").BundleAnalyzerPlugin;
|
|
1079
980
|
async function getBundlerConfig(unpackConfig) {
|
|
1080
|
-
var _unpackConfig_build, _unpackConfig_build1,
|
|
1081
|
-
let
|
|
981
|
+
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_build2, _unpackConfig_build3, _unpackConfig_build4, _unpackConfig_build5, _unpackConfig_build6, _unpackConfig_html, _unpackConfig_html1, _unpackConfig_html2, _unpackConfig_html3, _unpackConfig_html4, _unpackConfig_html5, _unpackConfig_html6, _unpackConfig_html7, _unpackConfig_performance, _unpackConfig_performance1, _unpackConfig_build7, _unpackConfig_resolve, _unpackConfig_resolve1, _unpackConfig_dev, _unpackConfig_build8, _unpackConfig_experiments;
|
|
982
|
+
let circularCount, tsconfigPath = external_node_path_default().resolve(unpackConfig.root, 'tsconfig.json'), isTs = external_node_fs_default().existsSync(tsconfigPath), minifyOptions = isPlainObject(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.minify) ? null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify : {}, ProgressPlugin = (null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.progressBar) ? ProgressRspackPlugin : ProgressLiteRspackPlugin, { publicVars, filePaths: envFilePaths } = function({ cwd = process.cwd(), mode = getNodeEnv(), prefixes = [
|
|
1082
983
|
'PUBLIC_'
|
|
1083
984
|
], processEnv = process.env } = {}) {
|
|
1084
985
|
if ('local' === mode) throw Error(`${colors.yellow('local')} cannot be used as a value for env mode, because ${colors.yellow('.env.local')} represents a temporary local file. Please use another value.`);
|
|
@@ -1133,64 +1034,61 @@ for(var __webpack_i__ in (()=>{
|
|
|
1133
1034
|
stats: 'errors-only',
|
|
1134
1035
|
output: {
|
|
1135
1036
|
clean: !0,
|
|
1136
|
-
path: external_node_path_default().resolve(unpackConfig.root,
|
|
1037
|
+
path: external_node_path_default().resolve(unpackConfig.root, unpackConfig.build.outDir),
|
|
1137
1038
|
filename: getOutputFilename({
|
|
1138
1039
|
type: 'js',
|
|
1139
|
-
hash: null == (
|
|
1040
|
+
hash: null == (_unpackConfig_build3 = unpackConfig.build) ? void 0 : _unpackConfig_build3.filenameHash
|
|
1140
1041
|
}),
|
|
1141
1042
|
chunkFilename: getOutputFilename({
|
|
1142
1043
|
type: 'js',
|
|
1143
|
-
hash: null == (
|
|
1044
|
+
hash: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.filenameHash,
|
|
1144
1045
|
async: !0
|
|
1145
1046
|
}),
|
|
1146
1047
|
crossOriginLoading: 'anonymous',
|
|
1147
1048
|
pathinfo: !1,
|
|
1148
|
-
publicPath: null == (
|
|
1149
|
-
webassemblyModuleFilename:
|
|
1049
|
+
publicPath: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.publicPath,
|
|
1050
|
+
webassemblyModuleFilename: 'js/async/[hash].module.wasm',
|
|
1150
1051
|
assetModuleFilename: 'assets/[name].[contenthash:8][ext]'
|
|
1151
1052
|
},
|
|
1152
1053
|
infrastructureLogging: {
|
|
1153
1054
|
level: 'error'
|
|
1154
1055
|
},
|
|
1155
|
-
devtool: null == (
|
|
1056
|
+
devtool: null == (_unpackConfig_build6 = unpackConfig.build) ? void 0 : _unpackConfig_build6.sourceMap,
|
|
1156
1057
|
module: {
|
|
1157
1058
|
rules: [
|
|
1158
1059
|
{
|
|
1159
|
-
test: /\.(png|
|
|
1060
|
+
test: /\.(png|jpe?g|gif|webp)$/i,
|
|
1160
1061
|
type: 'asset'
|
|
1161
1062
|
},
|
|
1162
1063
|
{
|
|
1163
|
-
test: /\.(
|
|
1064
|
+
test: /\.(woff2?|eot|ttf|otf)$/i,
|
|
1164
1065
|
type: 'asset'
|
|
1165
1066
|
},
|
|
1166
1067
|
{
|
|
1167
1068
|
test: /\.wasm$/,
|
|
1168
1069
|
dependency: 'url',
|
|
1169
|
-
type: 'asset/resource'
|
|
1170
|
-
generator: {
|
|
1171
|
-
filename: wasmFilename
|
|
1172
|
-
}
|
|
1070
|
+
type: 'asset/resource'
|
|
1173
1071
|
}
|
|
1174
1072
|
]
|
|
1175
1073
|
},
|
|
1176
1074
|
plugins: [
|
|
1177
|
-
(
|
|
1075
|
+
new core_namespaceObject.rspack.DefinePlugin({
|
|
1178
1076
|
'import.meta.env.MODE': JSON.stringify(getNodeEnv()),
|
|
1179
1077
|
'import.meta.env.DEV': isDev(),
|
|
1180
1078
|
'import.meta.env.PROD': isProd(),
|
|
1181
1079
|
...publicVars,
|
|
1182
1080
|
...unpackConfig.define
|
|
1183
|
-
}
|
|
1184
|
-
!unpackConfig.mpa && new
|
|
1185
|
-
template: (null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.template) ||
|
|
1186
|
-
templateContent: (null == (_unpackConfig_html1 = unpackConfig.html) ? void 0 : _unpackConfig_html1.templateContent) || ((null == (_unpackConfig_html2 = unpackConfig.html) ? void 0 : _unpackConfig_html2.template) ?
|
|
1081
|
+
}),
|
|
1082
|
+
!unpackConfig.mpa && new core_namespaceObject.rspack.HtmlRspackPlugin({
|
|
1083
|
+
template: (null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.template) || void 0,
|
|
1084
|
+
templateContent: (null == (_unpackConfig_html1 = unpackConfig.html) ? void 0 : _unpackConfig_html1.templateContent) || ((null == (_unpackConfig_html2 = unpackConfig.html) ? void 0 : _unpackConfig_html2.template) ? void 0 : TEMPLATE_CONTENT),
|
|
1187
1085
|
templateParameters: {
|
|
1188
|
-
mountId:
|
|
1189
|
-
title: isFunction(null == (
|
|
1086
|
+
mountId: unpackConfig.html.mountId,
|
|
1087
|
+
title: isFunction(null == (_unpackConfig_html3 = unpackConfig.html) ? void 0 : _unpackConfig_html3.title) ? null == (_unpackConfig_html4 = unpackConfig.html) ? void 0 : _unpackConfig_html4.title({
|
|
1190
1088
|
entryName: 'index'
|
|
1191
|
-
}) : (null == (
|
|
1192
|
-
headTag: (null == (
|
|
1193
|
-
...null == (
|
|
1089
|
+
}) : (null == (_unpackConfig_html5 = unpackConfig.html) ? void 0 : _unpackConfig_html5.title) || '',
|
|
1090
|
+
headTag: (null == (_unpackConfig_html6 = unpackConfig.html) ? void 0 : _unpackConfig_html6.headTag) || '',
|
|
1091
|
+
...null == (_unpackConfig_html7 = unpackConfig.html) ? void 0 : _unpackConfig_html7.templateParameters
|
|
1194
1092
|
},
|
|
1195
1093
|
minify: !1,
|
|
1196
1094
|
chunks: [
|
|
@@ -1200,11 +1098,11 @@ for(var __webpack_i__ in (()=>{
|
|
|
1200
1098
|
(null == (_unpackConfig_performance = unpackConfig.performance) ? void 0 : _unpackConfig_performance.bundleAnalyze) && isProd() && new BundleAnalyzerPlugin({
|
|
1201
1099
|
analyzerPort: 'auto'
|
|
1202
1100
|
}),
|
|
1203
|
-
(null == (_unpackConfig_performance1 = unpackConfig.performance) ? void 0 : _unpackConfig_performance1.removeMomentLocale) && new IgnorePlugin({
|
|
1101
|
+
(null == (_unpackConfig_performance1 = unpackConfig.performance) ? void 0 : _unpackConfig_performance1.removeMomentLocale) && new core_namespaceObject.rspack.IgnorePlugin({
|
|
1204
1102
|
resourceRegExp: /^\.\/locale$/,
|
|
1205
1103
|
contextRegExp: /moment$/
|
|
1206
1104
|
}),
|
|
1207
|
-
(null == (
|
|
1105
|
+
(null == (_unpackConfig_build7 = unpackConfig.build) ? void 0 : _unpackConfig_build7.copy) && new core_namespaceObject.rspack.CopyRspackPlugin({
|
|
1208
1106
|
patterns: unpackConfig.build.copy
|
|
1209
1107
|
}),
|
|
1210
1108
|
unpackConfig.typeCheck && isDev() && isTs && new external_ts_checker_rspack_plugin_namespaceObject.TsCheckerRspackPlugin({
|
|
@@ -1233,17 +1131,54 @@ for(var __webpack_i__ in (()=>{
|
|
|
1233
1131
|
}
|
|
1234
1132
|
}),
|
|
1235
1133
|
new ProgressPlugin(),
|
|
1236
|
-
unpackConfig.lint && new OxlintPlugin()
|
|
1134
|
+
unpackConfig.lint && new OxlintPlugin(),
|
|
1135
|
+
unpackConfig.detectCircular && (circularCount = 0, new core_namespaceObject.rspack.CircularDependencyRspackPlugin({
|
|
1136
|
+
exclude: /node_modules/,
|
|
1137
|
+
onStart () {
|
|
1138
|
+
circularCount = 0;
|
|
1139
|
+
},
|
|
1140
|
+
onDetected (_, modules) {
|
|
1141
|
+
circularCount++, console.log(''), logger_logger.warn('circular dependency detected:');
|
|
1142
|
+
let uniquePaths = modules.map((module)=>{
|
|
1143
|
+
let filePath = module.replace(/^.*!/, ''), relativePath = external_node_path_default().relative(unpackConfig.root, filePath);
|
|
1144
|
+
return relativePath.startsWith('..') ? filePath : relativePath;
|
|
1145
|
+
}).slice(0, -1), totalLength = 2 + uniquePaths.join(" \u2192 ").length;
|
|
1146
|
+
if (totalLength > (process.stdout.columns || 80)) {
|
|
1147
|
+
var paths = uniquePaths;
|
|
1148
|
+
console.log('');
|
|
1149
|
+
let arrow = "\u21B3 ", lastIndex = paths.length - 1;
|
|
1150
|
+
paths.forEach((p, i)=>{
|
|
1151
|
+
switch(i){
|
|
1152
|
+
case 0:
|
|
1153
|
+
console.log(` ${p}`);
|
|
1154
|
+
break;
|
|
1155
|
+
case lastIndex:
|
|
1156
|
+
console.log(` ${arrow}${p} ${colors.dim('(cycle introduced)')}`);
|
|
1157
|
+
break;
|
|
1158
|
+
default:
|
|
1159
|
+
console.log(` ${arrow}${p}`);
|
|
1160
|
+
}
|
|
1161
|
+
}), console.log(` ${arrow}${paths[0]}`), console.log('');
|
|
1162
|
+
} else {
|
|
1163
|
+
var paths1 = uniquePaths;
|
|
1164
|
+
let line1 = ' ', upArrowPos = 2, downArrowPos = 0;
|
|
1165
|
+
paths1.forEach((p, i)=>{
|
|
1166
|
+
line1 += p, i < paths1.length - 1 ? line1 += " \u2192 " : downArrowPos = line1.length - 1;
|
|
1167
|
+
});
|
|
1168
|
+
let lineLength = downArrowPos - upArrowPos;
|
|
1169
|
+
console.log(''), console.log(line1), console.log(' ' + ' '.repeat(upArrowPos - 2) + "\u2191" + ' '.repeat(downArrowPos - upArrowPos - 1) + "\u2193"), console.log(' ' + ' '.repeat(upArrowPos - 2) + "\u2514" + "\u2500".repeat(lineLength - 1) + "\u2518"), console.log('');
|
|
1170
|
+
}
|
|
1171
|
+
},
|
|
1172
|
+
onEnd () {
|
|
1173
|
+
circularCount > 0 && console.log(`Found ${circularCount} circular ${1 === circularCount ? 'dependency' : 'dependencies'}.`);
|
|
1174
|
+
}
|
|
1175
|
+
}))
|
|
1237
1176
|
].filter(Boolean),
|
|
1238
1177
|
externals: unpackConfig.externals,
|
|
1239
1178
|
resolve: {
|
|
1179
|
+
tsConfig: isTs ? tsconfigPath : void 0,
|
|
1240
1180
|
alias: {
|
|
1241
1181
|
'@': external_node_path_default().resolve(unpackConfig.root, 'src'),
|
|
1242
|
-
...isTs ? (()=>{
|
|
1243
|
-
var _json5_parse_compilerOptions, _json5_parse;
|
|
1244
|
-
let paths = null == (_json5_parse = external_json5_default().parse(external_node_fs_default().readFileSync(tsconfigPath, 'utf-8'))) || null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
|
|
1245
|
-
return paths ? Object.keys(paths).reduce((acc, key)=>(acc[key.replace(/\/\*$/, '')] = external_node_path_default().resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, '')), acc), {}) : {};
|
|
1246
|
-
})() : {},
|
|
1247
1182
|
...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
|
|
1248
1183
|
},
|
|
1249
1184
|
extensionAlias: {
|
|
@@ -1277,19 +1212,18 @@ for(var __webpack_i__ in (()=>{
|
|
|
1277
1212
|
},
|
|
1278
1213
|
optimization: {
|
|
1279
1214
|
moduleIds: isDev() ? 'named' : 'deterministic',
|
|
1280
|
-
minimize: !!(null == (
|
|
1215
|
+
minimize: !!(null == (_unpackConfig_build8 = unpackConfig.build) ? void 0 : _unpackConfig_build8.minify),
|
|
1281
1216
|
minimizer: [
|
|
1282
|
-
new JsMinifyPlugin({
|
|
1283
|
-
...minifyOptions.oxc,
|
|
1217
|
+
new JsMinifyPlugin(mergeConfig({
|
|
1284
1218
|
compress: {
|
|
1285
|
-
target: DEFAULT_ES_TARGET
|
|
1286
|
-
...oxcMinifyCompress
|
|
1219
|
+
target: DEFAULT_ES_TARGET
|
|
1287
1220
|
}
|
|
1288
|
-
}),
|
|
1289
|
-
new
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1221
|
+
}, minifyOptions.oxc || {})),
|
|
1222
|
+
new core_namespaceObject.rspack.LightningCssMinimizerRspackPlugin(mergeConfig({
|
|
1223
|
+
minimizerOptions: {
|
|
1224
|
+
targets: DEFAULT_BROWSERSLIST
|
|
1225
|
+
}
|
|
1226
|
+
}, minifyOptions.lightningcss || {}))
|
|
1293
1227
|
]
|
|
1294
1228
|
},
|
|
1295
1229
|
watchOptions: {
|
|
@@ -1327,7 +1261,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1327
1261
|
return config;
|
|
1328
1262
|
})({
|
|
1329
1263
|
config: config = (null == (_unpackConfig_experiments = unpackConfig.experiments) ? void 0 : _unpackConfig_experiments.css) ? function({ config, unpackConfig }) {
|
|
1330
|
-
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_css, _unpackConfig_css1
|
|
1264
|
+
var _unpackConfig_build, _unpackConfig_build1, _unpackConfig_css, _unpackConfig_css1;
|
|
1331
1265
|
config.output.cssFilename = getOutputFilename({
|
|
1332
1266
|
type: 'css',
|
|
1333
1267
|
hash: null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.filenameHash
|
|
@@ -1380,33 +1314,14 @@ for(var __webpack_i__ in (()=>{
|
|
|
1380
1314
|
sourceMap
|
|
1381
1315
|
}
|
|
1382
1316
|
};
|
|
1383
|
-
}
|
|
1384
|
-
null == (_config_module = config.module) || null == (_config_module_rules = _config_module.rules) || _config_module_rules.push({
|
|
1385
|
-
test: /\.less$/i,
|
|
1386
|
-
oneOf: [
|
|
1387
|
-
withCssModules({
|
|
1388
|
-
use: [
|
|
1389
|
-
getThreadLoader(),
|
|
1390
|
-
getLessLoader()
|
|
1391
|
-
].filter(Boolean)
|
|
1392
|
-
}),
|
|
1393
|
-
{
|
|
1394
|
-
use: [
|
|
1395
|
-
getThreadLoader(),
|
|
1396
|
-
getLessLoader()
|
|
1397
|
-
].filter(Boolean),
|
|
1398
|
-
type: 'css'
|
|
1399
|
-
}
|
|
1400
|
-
].filter(Boolean)
|
|
1401
|
-
});
|
|
1402
|
-
let getCssLoader = ()=>{
|
|
1317
|
+
}, getCssLoader = ()=>{
|
|
1403
1318
|
var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_css2;
|
|
1404
1319
|
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? {
|
|
1405
|
-
loader:
|
|
1406
|
-
options:
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
}
|
|
1320
|
+
loader: 'builtin:lightningcss-loader',
|
|
1321
|
+
options: {
|
|
1322
|
+
targets: DEFAULT_BROWSERSLIST,
|
|
1323
|
+
...null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.lightningcss
|
|
1324
|
+
}
|
|
1410
1325
|
} : {
|
|
1411
1326
|
loader: getCompiledPkgPath('postcss-loader'),
|
|
1412
1327
|
options: {
|
|
@@ -1414,8 +1329,22 @@ for(var __webpack_i__ in (()=>{
|
|
|
1414
1329
|
sourceMap
|
|
1415
1330
|
}
|
|
1416
1331
|
};
|
|
1332
|
+
}, getSassLoader = ()=>{
|
|
1333
|
+
var _unpackConfig_css;
|
|
1334
|
+
return {
|
|
1335
|
+
loader: getCompiledPkgPath('sass-loader'),
|
|
1336
|
+
options: {
|
|
1337
|
+
api: 'modern-compiler',
|
|
1338
|
+
implementation: getUserDepPath(unpackConfig.root, [
|
|
1339
|
+
'sass-embedded',
|
|
1340
|
+
'sass'
|
|
1341
|
+
]),
|
|
1342
|
+
sassOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.sass,
|
|
1343
|
+
sourceMap
|
|
1344
|
+
}
|
|
1345
|
+
};
|
|
1417
1346
|
};
|
|
1418
|
-
|
|
1347
|
+
return config.module.rules.push({
|
|
1419
1348
|
test: /\.css$/i,
|
|
1420
1349
|
oneOf: [
|
|
1421
1350
|
withCssModules({
|
|
@@ -1430,32 +1359,37 @@ for(var __webpack_i__ in (()=>{
|
|
|
1430
1359
|
type: 'css'
|
|
1431
1360
|
}
|
|
1432
1361
|
].filter(Boolean)
|
|
1433
|
-
})
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1362
|
+
}), config.module.rules.push({
|
|
1363
|
+
test: /\.less$/i,
|
|
1364
|
+
oneOf: [
|
|
1365
|
+
withCssModules({
|
|
1366
|
+
use: [
|
|
1367
|
+
getCssLoader(),
|
|
1368
|
+
getThreadLoader(),
|
|
1369
|
+
getLessLoader()
|
|
1370
|
+
].filter(Boolean)
|
|
1371
|
+
}),
|
|
1372
|
+
{
|
|
1373
|
+
use: [
|
|
1374
|
+
getCssLoader(),
|
|
1375
|
+
getThreadLoader(),
|
|
1376
|
+
getLessLoader()
|
|
1377
|
+
].filter(Boolean),
|
|
1378
|
+
type: 'css'
|
|
1446
1379
|
}
|
|
1447
|
-
|
|
1448
|
-
}
|
|
1449
|
-
return null == (_config_module2 = config.module) || null == (_config_module_rules2 = _config_module2.rules) || _config_module_rules2.push({
|
|
1380
|
+
].filter(Boolean)
|
|
1381
|
+
}), config.module.rules.push({
|
|
1450
1382
|
test: /\.s[ac]ss$/i,
|
|
1451
1383
|
oneOf: [
|
|
1452
1384
|
withCssModules({
|
|
1453
1385
|
use: [
|
|
1386
|
+
getCssLoader(),
|
|
1454
1387
|
getSassLoader()
|
|
1455
1388
|
]
|
|
1456
1389
|
}),
|
|
1457
1390
|
{
|
|
1458
1391
|
use: [
|
|
1392
|
+
getCssLoader(),
|
|
1459
1393
|
getSassLoader()
|
|
1460
1394
|
],
|
|
1461
1395
|
type: 'css'
|
|
@@ -1468,14 +1402,14 @@ for(var __webpack_i__ in (()=>{
|
|
|
1468
1402
|
config,
|
|
1469
1403
|
unpackConfig
|
|
1470
1404
|
}) : function({ config, unpackConfig }) {
|
|
1471
|
-
var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_build, _unpackConfig_css2,
|
|
1472
|
-
let
|
|
1405
|
+
var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_build, _unpackConfig_css2, _unpackConfig_css3, _unpackConfig_build1, _unpackConfig_build2;
|
|
1406
|
+
let sourceMap = null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.sourceMap, modules = null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.modules;
|
|
1473
1407
|
isPlainObject(modules) || !1 === modules || (modules = {});
|
|
1474
1408
|
let getCommonRules = ({ importLoaders })=>[
|
|
1475
1409
|
utils_isDevServer() ? {
|
|
1476
1410
|
loader: getCompiledPkgPath('style-loader')
|
|
1477
1411
|
} : {
|
|
1478
|
-
loader:
|
|
1412
|
+
loader: core_namespaceObject.rspack.CssExtractRspackPlugin.loader,
|
|
1479
1413
|
options: {
|
|
1480
1414
|
defaultExport: !0
|
|
1481
1415
|
}
|
|
@@ -1504,7 +1438,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1504
1438
|
}
|
|
1505
1439
|
}
|
|
1506
1440
|
].filter(Boolean);
|
|
1507
|
-
|
|
1441
|
+
utils_isDevServer() || config.plugins.push(new core_namespaceObject.rspack.CssExtractRspackPlugin({
|
|
1508
1442
|
filename: getOutputFilename({
|
|
1509
1443
|
type: 'css',
|
|
1510
1444
|
hash: null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.filenameHash
|
|
@@ -1513,13 +1447,32 @@ for(var __webpack_i__ in (()=>{
|
|
|
1513
1447
|
type: 'css',
|
|
1514
1448
|
hash: null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.filenameHash,
|
|
1515
1449
|
async: !0
|
|
1516
|
-
})
|
|
1517
|
-
|
|
1450
|
+
}),
|
|
1451
|
+
ignoreOrder: !0
|
|
1452
|
+
}));
|
|
1453
|
+
let getCssLoader = ()=>{
|
|
1454
|
+
var _unpackConfig_css, _unpackConfig_css1, _unpackConfig_css2;
|
|
1455
|
+
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? {
|
|
1456
|
+
loader: 'builtin:lightningcss-loader',
|
|
1457
|
+
options: {
|
|
1458
|
+
targets: DEFAULT_BROWSERSLIST,
|
|
1459
|
+
...null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.lightningcss
|
|
1460
|
+
}
|
|
1461
|
+
} : {
|
|
1462
|
+
loader: getCompiledPkgPath('postcss-loader'),
|
|
1463
|
+
options: {
|
|
1464
|
+
postcssOptions: null == (_unpackConfig_css2 = unpackConfig.css) ? void 0 : _unpackConfig_css2.postcss,
|
|
1465
|
+
sourceMap
|
|
1466
|
+
}
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
return config.module.rules.push({
|
|
1518
1470
|
test: /\.less$/i,
|
|
1519
1471
|
use: [
|
|
1520
1472
|
...getCommonRules({
|
|
1521
|
-
importLoaders:
|
|
1473
|
+
importLoaders: 2
|
|
1522
1474
|
}),
|
|
1475
|
+
getCssLoader(),
|
|
1523
1476
|
(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.parallel) && isProd() && {
|
|
1524
1477
|
loader: require.resolve('thread-loader'),
|
|
1525
1478
|
options: THREAD_OPTIONS
|
|
@@ -1535,32 +1488,21 @@ for(var __webpack_i__ in (()=>{
|
|
|
1535
1488
|
}
|
|
1536
1489
|
}
|
|
1537
1490
|
].filter(Boolean)
|
|
1538
|
-
}),
|
|
1491
|
+
}), config.module.rules.push({
|
|
1539
1492
|
test: /\.css$/i,
|
|
1540
1493
|
use: [
|
|
1541
1494
|
...getCommonRules({
|
|
1542
1495
|
importLoaders: 1
|
|
1543
1496
|
}),
|
|
1544
|
-
(
|
|
1545
|
-
loader: external_node_path_default().resolve(__dirname, './lightningcssLoader.mjs'),
|
|
1546
|
-
options: mergeConfig((null == (_unpackConfig_css5 = unpackConfig.css) ? void 0 : _unpackConfig_css5.lightningcss) || {}, {
|
|
1547
|
-
sourceMap,
|
|
1548
|
-
targets: DEFAULT_LIGHTNINGCSS_TARGET
|
|
1549
|
-
})
|
|
1550
|
-
} : {
|
|
1551
|
-
loader: getCompiledPkgPath('postcss-loader'),
|
|
1552
|
-
options: {
|
|
1553
|
-
postcssOptions: null == (_unpackConfig_css6 = unpackConfig.css) ? void 0 : _unpackConfig_css6.postcss,
|
|
1554
|
-
sourceMap
|
|
1555
|
-
}
|
|
1556
|
-
}
|
|
1497
|
+
getCssLoader()
|
|
1557
1498
|
]
|
|
1558
|
-
}),
|
|
1499
|
+
}), config.module.rules.push({
|
|
1559
1500
|
test: /\.s[ac]ss$/i,
|
|
1560
1501
|
use: [
|
|
1561
1502
|
...getCommonRules({
|
|
1562
|
-
importLoaders:
|
|
1503
|
+
importLoaders: 2
|
|
1563
1504
|
}),
|
|
1505
|
+
getCssLoader(),
|
|
1564
1506
|
{
|
|
1565
1507
|
loader: getCompiledPkgPath('sass-loader'),
|
|
1566
1508
|
options: {
|
|
@@ -1594,7 +1536,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1594
1536
|
}) : mergeConfig(config, unpackConfig.bundlerConfig)), config;
|
|
1595
1537
|
}
|
|
1596
1538
|
async function unpackBuild(unpackConfig) {
|
|
1597
|
-
let
|
|
1539
|
+
let config = await getBundlerConfig(unpackConfig), compiler = (0, core_namespaceObject.rspack)(config), handler = (err, stats)=>{
|
|
1598
1540
|
if (err) {
|
|
1599
1541
|
console.error(err.stack || err), err.details && console.error(err.details);
|
|
1600
1542
|
return;
|
|
@@ -1606,8 +1548,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1606
1548
|
};
|
|
1607
1549
|
isWatch() ? compiler.watch({}, handler) : compiler.run(handler);
|
|
1608
1550
|
}
|
|
1609
|
-
let restartCleaners = []
|
|
1610
|
-
var external_open_default = __webpack_require__.n(external_open_namespaceObject);
|
|
1551
|
+
let restartCleaners = [];
|
|
1611
1552
|
async function openBrowser(url) {
|
|
1612
1553
|
if ('darwin' === process.platform) try {
|
|
1613
1554
|
let ps = await execAsync('ps cax'), openedBrowser = [
|
|
@@ -1627,7 +1568,39 @@ for(var __webpack_i__ in (()=>{
|
|
|
1627
1568
|
logger_logger.error(err);
|
|
1628
1569
|
}
|
|
1629
1570
|
try {
|
|
1630
|
-
|
|
1571
|
+
var url1;
|
|
1572
|
+
return (url1 = url, new Promise((resolve, reject)=>{
|
|
1573
|
+
let command, args = [];
|
|
1574
|
+
switch((0, external_node_os_namespaceObject.platform)()){
|
|
1575
|
+
case 'darwin':
|
|
1576
|
+
command = 'open', args = [
|
|
1577
|
+
url1
|
|
1578
|
+
];
|
|
1579
|
+
break;
|
|
1580
|
+
case 'win32':
|
|
1581
|
+
command = 'cmd', args = [
|
|
1582
|
+
'/c',
|
|
1583
|
+
'start',
|
|
1584
|
+
'',
|
|
1585
|
+
url1
|
|
1586
|
+
];
|
|
1587
|
+
break;
|
|
1588
|
+
default:
|
|
1589
|
+
command = 'xdg-open', args = [
|
|
1590
|
+
url1
|
|
1591
|
+
];
|
|
1592
|
+
}
|
|
1593
|
+
let child = (0, external_node_child_process_namespaceObject.spawn)(command, args, {
|
|
1594
|
+
stdio: 'ignore',
|
|
1595
|
+
detached: !0,
|
|
1596
|
+
windowsHide: !0
|
|
1597
|
+
});
|
|
1598
|
+
child.on('error', (error)=>{
|
|
1599
|
+
reject(Error(`Failed to open URL: ${error.message}`));
|
|
1600
|
+
}), child.on('spawn', ()=>{
|
|
1601
|
+
resolve();
|
|
1602
|
+
}), child.unref();
|
|
1603
|
+
})).catch(()=>{}), !0;
|
|
1631
1604
|
} catch (err) {
|
|
1632
1605
|
return logger_logger.error(err), !1;
|
|
1633
1606
|
}
|
|
@@ -1818,7 +1791,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1818
1791
|
let port = await getPort(), staticServer = app.listen(port, ()=>{});
|
|
1819
1792
|
restartCleaners.push(()=>new Promise((resolve)=>staticServer.close(()=>resolve())));
|
|
1820
1793
|
let externals = {}, jsAssets = [], cssAssets = [], preJsAssets = [];
|
|
1821
|
-
bundledDeps.filter(Boolean).forEach((dep)=>{
|
|
1794
|
+
return bundledDeps.filter(Boolean).forEach((dep)=>{
|
|
1822
1795
|
dep && (externals[dep.name] = getExternalValue(dep.name), dep.assets.forEach((absPath)=>{
|
|
1823
1796
|
let relativePath = external_node_path_default().relative(cachePath, absPath), preDeps = [
|
|
1824
1797
|
'react',
|
|
@@ -1842,16 +1815,14 @@ for(var __webpack_i__ in (()=>{
|
|
|
1842
1815
|
] : {
|
|
1843
1816
|
...externals,
|
|
1844
1817
|
...unpackConfig.externals
|
|
1845
|
-
}
|
|
1846
|
-
let HtmlPlugin = 'rspack' === unpackConfig.bundler ? core_namespaceObject.rspack.HtmlRspackPlugin : external_html_webpack_plugin_default();
|
|
1847
|
-
return unpackConfig.plugins.push({
|
|
1818
|
+
}, unpackConfig.plugins.push({
|
|
1848
1819
|
name: 'unpack:prebundle',
|
|
1849
1820
|
bundlerConfig: (config)=>{
|
|
1850
1821
|
let PLUGIN_NAME = 'PluginInjectAssets';
|
|
1851
1822
|
return config.plugins.push({
|
|
1852
1823
|
apply: (compiler)=>{
|
|
1853
1824
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
|
1854
|
-
|
|
1825
|
+
core_namespaceObject.rspack.HtmlRspackPlugin.getCompilationHooks(compilation).beforeAssetTagGeneration.tapPromise(PLUGIN_NAME, async (args)=>{
|
|
1855
1826
|
let sortedPreJsAssets = preJsAssets.sort((a, b)=>a.order - b.order).map((item)=>item.path);
|
|
1856
1827
|
return args.assets.js.unshift(...sortedPreJsAssets, ...jsAssets), args.assets.css.unshift(...cssAssets), args;
|
|
1857
1828
|
});
|
|
@@ -1864,11 +1835,11 @@ for(var __webpack_i__ in (()=>{
|
|
|
1864
1835
|
var external_webpack_dev_server_default = __webpack_require__.n(external_webpack_dev_server_namespaceObject);
|
|
1865
1836
|
async function unpackDev(originalUnpackConfig) {
|
|
1866
1837
|
var _unpackConfig_dev, _unpackConfig_server, _unpackConfig_server1, _unpackConfig_dev1, _unpackConfig_server2;
|
|
1867
|
-
let unpackConfig = originalUnpackConfig
|
|
1838
|
+
let unpackConfig = originalUnpackConfig;
|
|
1868
1839
|
(null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.prebundle) && (unpackConfig = await prebundleDeps({
|
|
1869
1840
|
unpackConfig
|
|
1870
1841
|
}));
|
|
1871
|
-
let
|
|
1842
|
+
let config = await getBundlerConfig(unpackConfig), compiler = (0, core_namespaceObject.rspack)(config), port = await getPort(null == (_unpackConfig_server = unpackConfig.server) ? void 0 : _unpackConfig_server.port), proxyConfig = null == (_unpackConfig_server1 = unpackConfig.server) ? void 0 : _unpackConfig_server1.proxy;
|
|
1872
1843
|
isPlainObject(proxyConfig) && (proxyConfig = Object.entries(proxyConfig).map(([contextStr, target])=>({
|
|
1873
1844
|
context: contextStr.split(','),
|
|
1874
1845
|
target,
|
|
@@ -1889,9 +1860,9 @@ for(var __webpack_i__ in (()=>{
|
|
|
1889
1860
|
devServerOptions.setupMiddlewares = (middlewares)=>(middlewares.unshift((req, _, next)=>{
|
|
1890
1861
|
var _req_headers_accept;
|
|
1891
1862
|
(null == (_req_headers_accept = req.headers.accept) ? void 0 : _req_headers_accept.includes('html')) && (req.url = '/index.html'), next();
|
|
1892
|
-
}),
|
|
1863
|
+
}), middlewares.unshift(core_namespaceObject.experiments.lazyCompilationMiddleware(compiler)), middlewares);
|
|
1893
1864
|
let server = new (external_webpack_dev_server_default())(devServerOptions, compiler);
|
|
1894
|
-
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())}
|
|
1865
|
+
await server.start(), logger_logger.greet(` ${colors.green(`${colors.bold(unpackConfig._context.callerName.toUpperCase())} v3.1.0`)} ${colors.dim(`ready in ${colors.reset(Math.ceil(performance.now() - global.__unpack_start_time))}ms`)}\n`), function(port) {
|
|
1895
1866
|
let addressUrls = getAddressUrls({
|
|
1896
1867
|
port
|
|
1897
1868
|
});
|
|
@@ -1911,7 +1882,6 @@ for(var __webpack_i__ in (()=>{
|
|
|
1911
1882
|
function createUnpack({ cwd = process.cwd(), config, callerName = 'unpack' }) {
|
|
1912
1883
|
let resolveConfig = async ()=>{
|
|
1913
1884
|
let defaultConfig = {
|
|
1914
|
-
bundler: 'rspack',
|
|
1915
1885
|
root: cwd,
|
|
1916
1886
|
build: {
|
|
1917
1887
|
outDir: 'dist',
|
|
@@ -1945,7 +1915,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
1945
1915
|
]
|
|
1946
1916
|
}, _context = {
|
|
1947
1917
|
callerName,
|
|
1948
|
-
version: "
|
|
1918
|
+
version: "3.1.0"
|
|
1949
1919
|
}, { plugins, bundlerConfig, ...rest } = mergeConfig(defaultConfig, config);
|
|
1950
1920
|
for (let plugin of getNormalizedPluginsByHook('config', plugins))rest = await plugin.config(rest, {
|
|
1951
1921
|
..._context,
|
|
@@ -1960,10 +1930,9 @@ for(var __webpack_i__ in (()=>{
|
|
|
1960
1930
|
};
|
|
1961
1931
|
return {
|
|
1962
1932
|
build: async ({ watch } = {})=>{
|
|
1963
|
-
var _config_build;
|
|
1964
1933
|
setNodeEnv(watch ? 'development' : 'production');
|
|
1965
1934
|
let config = await resolveConfig();
|
|
1966
|
-
console.log(colors.rainbow(`${callerName}
|
|
1935
|
+
console.log(colors.rainbow(`${callerName} v3.1.0`), colors.green(`building for ${getNodeEnv()}...`)), unpackBuild(config);
|
|
1967
1936
|
},
|
|
1968
1937
|
dev: async ()=>{
|
|
1969
1938
|
global.__unpack_start_time = performance.now(), setNodeEnv('development'), setDevServer(!0), unpackDev(await resolveConfig());
|
|
@@ -1988,17 +1957,15 @@ for(var __webpack_i__ in (()=>{
|
|
|
1988
1957
|
...options
|
|
1989
1958
|
});
|
|
1990
1959
|
}
|
|
1991
|
-
})(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_BROWSERSLIST = __webpack_exports__.DEFAULT_BROWSERSLIST, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEFAULT_ES_TARGET = __webpack_exports__.DEFAULT_ES_TARGET, exports.
|
|
1960
|
+
})(), exports.CSS_MODULES_LOCAL_IDENT_NAME = __webpack_exports__.CSS_MODULES_LOCAL_IDENT_NAME, exports.CSS_MODULES_REGEX = __webpack_exports__.CSS_MODULES_REGEX, exports.CSS_NAMED_EXPORT = __webpack_exports__.CSS_NAMED_EXPORT, exports.DEFAULT_BROWSERSLIST = __webpack_exports__.DEFAULT_BROWSERSLIST, exports.DEFAULT_DEV_HOST = __webpack_exports__.DEFAULT_DEV_HOST, exports.DEFAULT_ES_TARGET = __webpack_exports__.DEFAULT_ES_TARGET, exports.DEV_DEFAULT_FILENAME = __webpack_exports__.DEV_DEFAULT_FILENAME, exports.EXPORT_LOCALS_CONVENTION = __webpack_exports__.EXPORT_LOCALS_CONVENTION, exports.LogColor = __webpack_exports__.LogColor, exports.NODE_MODULES_REGEX = __webpack_exports__.NODE_MODULES_REGEX, exports.PROD_DEFAULT_FILENAME = __webpack_exports__.PROD_DEFAULT_FILENAME, exports.TEMPLATE_CONTENT = __webpack_exports__.TEMPLATE_CONTENT, exports.TEMP_DIR = __webpack_exports__.TEMP_DIR, exports.THREAD_OPTIONS = __webpack_exports__.THREAD_OPTIONS, exports.clearLine = __webpack_exports__.clearLine, exports.colors = __webpack_exports__.colors, exports.createChokidar = __webpack_exports__.createChokidar, exports.createUnpack = __webpack_exports__.createUnpack, exports.debounce = __webpack_exports__.debounce, exports.defineConfig = __webpack_exports__.defineConfig, exports.findExists = __webpack_exports__.findExists, exports.getAddressUrls = __webpack_exports__.getAddressUrls, exports.getCompiledPkgPath = __webpack_exports__.getCompiledPkgPath, exports.getIpv4Interfaces = __webpack_exports__.getIpv4Interfaces, exports.getNodeEnv = __webpack_exports__.getNodeEnv, exports.getPathInJs = __webpack_exports__.getPathInJs, exports.getPort = __webpack_exports__.getPort, exports.getTime = __webpack_exports__.getTime, exports.getUserDepPath = __webpack_exports__.getUserDepPath, exports.getUserDepVersion = __webpack_exports__.getUserDepVersion, exports.getValueByPath = __webpack_exports__.getValueByPath, exports.isBoolean = __webpack_exports__.isBoolean, exports.isCI = __webpack_exports__.isCI, exports.isCSSModules = __webpack_exports__.isCSSModules, exports.isDebug = __webpack_exports__.isDebug, exports.isDev = __webpack_exports__.isDev, exports.isDevServer = __webpack_exports__.isDevServer, exports.isEmptyDir = __webpack_exports__.isEmptyDir, exports.isFileExists = __webpack_exports__.isFileExists, exports.isFileSync = __webpack_exports__.isFileSync, exports.isFunction = __webpack_exports__.isFunction, exports.isNodeVersionAtLeast = __webpack_exports__.isNodeVersionAtLeast, exports.isObject = __webpack_exports__.isObject, exports.isPlainObject = __webpack_exports__.isPlainObject, exports.isProd = __webpack_exports__.isProd, exports.isRegExp = __webpack_exports__.isRegExp, exports.isString = __webpack_exports__.isString, exports.isUndefined = __webpack_exports__.isUndefined, exports.isWatch = __webpack_exports__.isWatch, exports.isWin = __webpack_exports__.isWin, exports.loadConfig = __webpack_exports__.loadConfig, exports.logUpdate = __webpack_exports__.logUpdate, exports.logger = __webpack_exports__.logger, exports.mergeConfig = __webpack_exports__.mergeConfig, exports.pathExists = __webpack_exports__.pathExists, exports.prettyTime = __webpack_exports__.prettyTime, exports.removeDir = __webpack_exports__.removeDir, exports.resolveConfigPath = __webpack_exports__.resolveConfigPath, exports.restartCleaners = __webpack_exports__.restartCleaners, exports.rspack = __webpack_exports__.rspack, exports.setDevServer = __webpack_exports__.setDevServer, exports.setNodeEnv = __webpack_exports__.setNodeEnv, exports.setValueByPath = __webpack_exports__.setValueByPath, exports.trackPerformance = __webpack_exports__.trackPerformance, __webpack_exports__)-1 === [
|
|
1992
1961
|
"CSS_MODULES_LOCAL_IDENT_NAME",
|
|
1993
1962
|
"CSS_MODULES_REGEX",
|
|
1994
1963
|
"CSS_NAMED_EXPORT",
|
|
1995
1964
|
"DEFAULT_BROWSERSLIST",
|
|
1996
1965
|
"DEFAULT_DEV_HOST",
|
|
1997
1966
|
"DEFAULT_ES_TARGET",
|
|
1998
|
-
"DEFAULT_LIGHTNINGCSS_TARGET",
|
|
1999
1967
|
"DEV_DEFAULT_FILENAME",
|
|
2000
1968
|
"EXPORT_LOCALS_CONVENTION",
|
|
2001
|
-
"HtmlWebpackPlugin",
|
|
2002
1969
|
"LogColor",
|
|
2003
1970
|
"NODE_MODULES_REGEX",
|
|
2004
1971
|
"PROD_DEFAULT_FILENAME",
|
|
@@ -2054,8 +2021,7 @@ for(var __webpack_i__ in (()=>{
|
|
|
2054
2021
|
"setDevServer",
|
|
2055
2022
|
"setNodeEnv",
|
|
2056
2023
|
"setValueByPath",
|
|
2057
|
-
"trackPerformance"
|
|
2058
|
-
"webpack"
|
|
2024
|
+
"trackPerformance"
|
|
2059
2025
|
].indexOf(__webpack_i__) && (exports[__webpack_i__] = __webpack_exports__[__webpack_i__]);
|
|
2060
2026
|
Object.defineProperty(exports, '__esModule', {
|
|
2061
2027
|
value: !0
|