@unpackjs/core 1.7.10 → 1.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/css-loader/index.js +20 -20
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/sass-loader/index.js +8 -8
- package/compiled/style-loader/index.js +10 -10
- package/dist/bundler-config/css.cjs +16 -16
- package/dist/bundler-config/css.js +19 -19
- package/dist/bundler-config/experimentCss.cjs +15 -15
- package/dist/bundler-config/experimentCss.js +17 -17
- package/dist/bundler-config/index.cjs +23 -23
- package/dist/bundler-config/index.js +23 -23
- package/dist/bundler-config/jsMinify.cjs +1 -1
- package/dist/bundler-config/jsMinify.js +1 -1
- package/dist/colors.cjs +2 -2
- package/dist/colors.js +2 -2
- package/dist/config.js +2 -2
- package/dist/createUnpack.cjs +2 -2
- package/dist/createUnpack.js +2 -2
- package/dist/index.js +2 -2
- package/dist/lightningcss/loader.cjs +2 -2
- package/dist/lightningcss/loader.js +2 -2
- package/dist/lightningcss/minimizer.cjs +3 -3
- package/dist/lightningcss/minimizer.js +3 -3
- package/dist/logger.cjs +2 -2
- package/dist/logger.js +2 -2
- package/dist/openBrowser.cjs +2 -2
- package/dist/openBrowser.js +4 -4
- package/dist/prebundleDeps.cjs +3 -9
- package/dist/prebundleDeps.js +3 -9
- package/dist/run/dev.cjs +5 -5
- package/dist/run/dev.js +5 -5
- package/dist/typed-css-modules/loader.cjs +4 -10
- package/dist/typed-css-modules/loader.js +4 -10
- package/dist/typed-css-modules/plugin.cjs +1 -1
- package/dist/typed-css-modules/plugin.js +1 -1
- package/dist/types/logger.js +2 -2
- package/dist/utils.cjs +3 -3
- package/dist/utils.js +5 -5
- package/package.json +3 -3
|
@@ -45,7 +45,7 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
45
45
|
var _unpackConfig_build, _unpackConfig_css, _config_module_rules, _config_module, _config_module_rules1, _config_module1, _config_module_rules2, _config_module2;
|
|
46
46
|
const CSS_FILENAME = (0, external_helper_cjs_namespaceObject.getOutputFilename)({
|
|
47
47
|
type: 'css',
|
|
48
|
-
hash: null
|
|
48
|
+
hash: null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.filenameHash
|
|
49
49
|
});
|
|
50
50
|
config.output.cssFilename = CSS_FILENAME;
|
|
51
51
|
config.output.cssChunkFilename = CSS_FILENAME;
|
|
@@ -53,7 +53,7 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
53
53
|
'experiments',
|
|
54
54
|
'css'
|
|
55
55
|
], true);
|
|
56
|
-
let modules = null
|
|
56
|
+
let modules = null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.modules;
|
|
57
57
|
if (!(0, external_utils_cjs_namespaceObject.isPlainObject)(modules) && false !== modules) modules = {};
|
|
58
58
|
if (false !== modules && false !== modules.auto) {
|
|
59
59
|
(0, external_utils_cjs_namespaceObject.setValueByPath)(config, [
|
|
@@ -89,7 +89,7 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
89
89
|
};
|
|
90
90
|
const getThreadLoader = ()=>{
|
|
91
91
|
var _unpackConfig_build;
|
|
92
|
-
return (null
|
|
92
|
+
return (null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.parallel) && {
|
|
93
93
|
loader: require.resolve('thread-loader'),
|
|
94
94
|
options: external_constants_cjs_namespaceObject.THREAD_OPTIONS
|
|
95
95
|
};
|
|
@@ -101,13 +101,13 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
101
101
|
options: {
|
|
102
102
|
lessOptions: (0, external_utils_cjs_namespaceObject.mergeConfig)({
|
|
103
103
|
javascriptEnabled: true
|
|
104
|
-
}, (null
|
|
104
|
+
}, (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.less) || {}),
|
|
105
105
|
implementation: (0, external_utils_cjs_namespaceObject.getUserDepPath)(unpackConfig.root, 'less'),
|
|
106
|
-
sourceMap: null
|
|
106
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
null
|
|
110
|
+
null == (_config_module = config.module) || null == (_config_module_rules = _config_module.rules) || _config_module_rules.push({
|
|
111
111
|
test: /\.less$/i,
|
|
112
112
|
oneOf: [
|
|
113
113
|
withCssModules({
|
|
@@ -129,8 +129,8 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
129
129
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
130
130
|
return {
|
|
131
131
|
loader: external_node_path_default().resolve(__dirname, '../lightningcss/loader.cjs'),
|
|
132
|
-
options: (0, external_utils_cjs_namespaceObject.mergeConfig)((null
|
|
133
|
-
sourceMap: null
|
|
132
|
+
options: (0, external_utils_cjs_namespaceObject.mergeConfig)((null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.lightningcss) || {}, {
|
|
133
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
134
134
|
})
|
|
135
135
|
};
|
|
136
136
|
};
|
|
@@ -139,16 +139,16 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
139
139
|
return {
|
|
140
140
|
loader: (0, external_utils_cjs_namespaceObject.getCompiledPkgPath)('postcss-loader'),
|
|
141
141
|
options: {
|
|
142
|
-
postcssOptions: null
|
|
143
|
-
sourceMap: null
|
|
142
|
+
postcssOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.postcss,
|
|
143
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
};
|
|
147
147
|
const getCssLoader = ()=>{
|
|
148
148
|
var _unpackConfig_css;
|
|
149
|
-
return (null
|
|
149
|
+
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? getLightningcssLoader() : getPostcssLoader();
|
|
150
150
|
};
|
|
151
|
-
null
|
|
151
|
+
null == (_config_module1 = config.module) || null == (_config_module_rules1 = _config_module1.rules) || _config_module_rules1.push({
|
|
152
152
|
test: /\.css$/i,
|
|
153
153
|
oneOf: [
|
|
154
154
|
withCssModules({
|
|
@@ -174,12 +174,12 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
174
174
|
'sass-embedded',
|
|
175
175
|
'sass'
|
|
176
176
|
]),
|
|
177
|
-
sassOptions: null
|
|
178
|
-
sourceMap: null
|
|
177
|
+
sassOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.sass,
|
|
178
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
|
-
null
|
|
182
|
+
null == (_config_module2 = config.module) || null == (_config_module_rules2 = _config_module2.rules) || _config_module_rules2.push({
|
|
183
183
|
test: /\.s[ac]ss$/i,
|
|
184
184
|
oneOf: [
|
|
185
185
|
withCssModules({
|
|
@@ -7,12 +7,12 @@ import * as __WEBPACK_EXTERNAL_MODULE__constants_js_59e7fa1b__ from "../constant
|
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__typed_css_modules_plugin_js_c181893e__ from "../typed-css-modules/plugin.js";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__ from "../utils.js";
|
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE__helper_js_3f3fef5c__ from "./helper.js";
|
|
10
|
-
var
|
|
10
|
+
var experimentCss_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
|
|
11
11
|
function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
12
12
|
var _unpackConfig_build, _unpackConfig_css, _config_module_rules, _config_module, _config_module_rules1, _config_module1, _config_module_rules2, _config_module2;
|
|
13
13
|
const CSS_FILENAME = (0, __WEBPACK_EXTERNAL_MODULE__helper_js_3f3fef5c__.getOutputFilename)({
|
|
14
14
|
type: 'css',
|
|
15
|
-
hash: null
|
|
15
|
+
hash: null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.filenameHash
|
|
16
16
|
});
|
|
17
17
|
config.output.cssFilename = CSS_FILENAME;
|
|
18
18
|
config.output.cssChunkFilename = CSS_FILENAME;
|
|
@@ -20,7 +20,7 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
20
20
|
'experiments',
|
|
21
21
|
'css'
|
|
22
22
|
], true);
|
|
23
|
-
let modules = null
|
|
23
|
+
let modules = null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.modules;
|
|
24
24
|
if (!(0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isPlainObject)(modules) && false !== modules) modules = {};
|
|
25
25
|
if (false !== modules && false !== modules.auto) {
|
|
26
26
|
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.setValueByPath)(config, [
|
|
@@ -56,7 +56,7 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
56
56
|
};
|
|
57
57
|
const getThreadLoader = ()=>{
|
|
58
58
|
var _unpackConfig_build;
|
|
59
|
-
return (null
|
|
59
|
+
return (null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.parallel) && {
|
|
60
60
|
loader: require.resolve('thread-loader'),
|
|
61
61
|
options: __WEBPACK_EXTERNAL_MODULE__constants_js_59e7fa1b__.THREAD_OPTIONS
|
|
62
62
|
};
|
|
@@ -68,13 +68,13 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
68
68
|
options: {
|
|
69
69
|
lessOptions: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.mergeConfig)({
|
|
70
70
|
javascriptEnabled: true
|
|
71
|
-
}, (null
|
|
71
|
+
}, (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.less) || {}),
|
|
72
72
|
implementation: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.getUserDepPath)(unpackConfig.root, 'less'),
|
|
73
|
-
sourceMap: null
|
|
73
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
|
-
null
|
|
77
|
+
null == (_config_module = config.module) || null == (_config_module_rules = _config_module.rules) || _config_module_rules.push({
|
|
78
78
|
test: /\.less$/i,
|
|
79
79
|
oneOf: [
|
|
80
80
|
withCssModules({
|
|
@@ -95,9 +95,9 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
95
95
|
const getLightningcssLoader = ()=>{
|
|
96
96
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
97
97
|
return {
|
|
98
|
-
loader: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(
|
|
99
|
-
options: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.mergeConfig)((null
|
|
100
|
-
sourceMap: null
|
|
98
|
+
loader: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(experimentCss_dirname, '../lightningcss/loader.cjs'),
|
|
99
|
+
options: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.mergeConfig)((null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.lightningcss) || {}, {
|
|
100
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
101
101
|
})
|
|
102
102
|
};
|
|
103
103
|
};
|
|
@@ -106,16 +106,16 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
106
106
|
return {
|
|
107
107
|
loader: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.getCompiledPkgPath)('postcss-loader'),
|
|
108
108
|
options: {
|
|
109
|
-
postcssOptions: null
|
|
110
|
-
sourceMap: null
|
|
109
|
+
postcssOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.postcss,
|
|
110
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
const getCssLoader = ()=>{
|
|
115
115
|
var _unpackConfig_css;
|
|
116
|
-
return (null
|
|
116
|
+
return (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.transformer) === 'lightningcss' ? getLightningcssLoader() : getPostcssLoader();
|
|
117
117
|
};
|
|
118
|
-
null
|
|
118
|
+
null == (_config_module1 = config.module) || null == (_config_module_rules1 = _config_module1.rules) || _config_module_rules1.push({
|
|
119
119
|
test: /\.css$/i,
|
|
120
120
|
oneOf: [
|
|
121
121
|
withCssModules({
|
|
@@ -141,12 +141,12 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
141
141
|
'sass-embedded',
|
|
142
142
|
'sass'
|
|
143
143
|
]),
|
|
144
|
-
sassOptions: null
|
|
145
|
-
sourceMap: null
|
|
144
|
+
sassOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.sass,
|
|
145
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
|
-
null
|
|
149
|
+
null == (_config_module2 = config.module) || null == (_config_module_rules2 = _config_module2.rules) || _config_module_rules2.push({
|
|
150
150
|
test: /\.s[ac]ss$/i,
|
|
151
151
|
oneOf: [
|
|
152
152
|
withCssModules({
|
|
@@ -88,7 +88,7 @@ var __webpack_exports__ = {};
|
|
|
88
88
|
const definePlugin = (define)=>isRspack ? new core_namespaceObject.rspack.DefinePlugin(define) : new (external_webpack_default()).DefinePlugin(define);
|
|
89
89
|
const JS_FILENAME = (0, external_helper_cjs_namespaceObject.getOutputFilename)({
|
|
90
90
|
type: 'js',
|
|
91
|
-
hash: null
|
|
91
|
+
hash: null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.filenameHash
|
|
92
92
|
});
|
|
93
93
|
const IgnorePlugin = isRspack ? core_namespaceObject.rspack.IgnorePlugin : external_webpack_default().IgnorePlugin;
|
|
94
94
|
const CopyPlugin = isRspack ? core_namespaceObject.rspack.CopyRspackPlugin : CopyWebpackPlugin;
|
|
@@ -96,13 +96,13 @@ var __webpack_exports__ = {};
|
|
|
96
96
|
const isTs = external_node_fs_default().existsSync(tsconfigPath);
|
|
97
97
|
const getAliasFromTsconfig = ()=>{
|
|
98
98
|
var _json5_parse_compilerOptions, _json5_parse;
|
|
99
|
-
const paths = null
|
|
99
|
+
const paths = null == (_json5_parse = external_json5_default().parse(external_node_fs_default().readFileSync(tsconfigPath, 'utf-8'))) ? void 0 : null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
|
|
100
100
|
return paths ? Object.keys(paths).reduce((acc, key)=>{
|
|
101
101
|
acc[key.replace(/\/\*$/, '')] = external_node_path_default().resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, ''));
|
|
102
102
|
return acc;
|
|
103
103
|
}, {}) : {};
|
|
104
104
|
};
|
|
105
|
-
const minifyOptions = (0, external_utils_cjs_namespaceObject.isPlainObject)(null
|
|
105
|
+
const minifyOptions = (0, external_utils_cjs_namespaceObject.isPlainObject)(null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify) ? null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.minify : {};
|
|
106
106
|
const PluginProgress = isRspack ? rspack_cjs_namespaceObject.RspackPluginProgress : webpack_cjs_namespaceObject.WebpackPluginProgress;
|
|
107
107
|
let config = {
|
|
108
108
|
context: unpackConfig.root,
|
|
@@ -113,17 +113,17 @@ var __webpack_exports__ = {};
|
|
|
113
113
|
stats: 'errors-only',
|
|
114
114
|
output: {
|
|
115
115
|
clean: true,
|
|
116
|
-
path: external_node_path_default().resolve(unpackConfig.root, null
|
|
116
|
+
path: external_node_path_default().resolve(unpackConfig.root, null == (_unpackConfig_build3 = unpackConfig.build) ? void 0 : _unpackConfig_build3.outDir),
|
|
117
117
|
filename: JS_FILENAME,
|
|
118
118
|
chunkFilename: JS_FILENAME,
|
|
119
119
|
crossOriginLoading: 'anonymous',
|
|
120
120
|
pathinfo: false,
|
|
121
|
-
publicPath: null
|
|
121
|
+
publicPath: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.publicPath
|
|
122
122
|
},
|
|
123
123
|
infrastructureLogging: {
|
|
124
124
|
level: 'warn'
|
|
125
125
|
},
|
|
126
|
-
devtool: null
|
|
126
|
+
devtool: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.sourceMap,
|
|
127
127
|
module: {
|
|
128
128
|
rules: [
|
|
129
129
|
{
|
|
@@ -139,30 +139,30 @@ var __webpack_exports__ = {};
|
|
|
139
139
|
plugins: [
|
|
140
140
|
unpackConfig.define && definePlugin(unpackConfig.define),
|
|
141
141
|
!unpackConfig.mpa && new HtmlPlugin({
|
|
142
|
-
template: (null
|
|
143
|
-
templateContent: (null
|
|
142
|
+
template: (null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
|
|
143
|
+
templateContent: (null == (_unpackConfig_html1 = unpackConfig.html) ? void 0 : _unpackConfig_html1.templateContent) || ((null == (_unpackConfig_html2 = unpackConfig.html) ? void 0 : _unpackConfig_html2.template) ? isRspack ? void 0 : false : external_constants_cjs_namespaceObject.TEMPLATE_CONTENT),
|
|
144
144
|
templateParameters: {
|
|
145
|
-
mountId: null
|
|
146
|
-
title: (0, external_utils_cjs_namespaceObject.isFunction)(null
|
|
145
|
+
mountId: null == (_unpackConfig_html3 = unpackConfig.html) ? void 0 : _unpackConfig_html3.mountId,
|
|
146
|
+
title: (0, external_utils_cjs_namespaceObject.isFunction)(null == (_unpackConfig_html4 = unpackConfig.html) ? void 0 : _unpackConfig_html4.title) ? null == (_unpackConfig_html5 = unpackConfig.html) ? void 0 : _unpackConfig_html5.title({
|
|
147
147
|
entryName: 'index'
|
|
148
|
-
}) : (null
|
|
149
|
-
headTag: (null
|
|
150
|
-
...null
|
|
148
|
+
}) : (null == (_unpackConfig_html6 = unpackConfig.html) ? void 0 : _unpackConfig_html6.title) || '',
|
|
149
|
+
headTag: (null == (_unpackConfig_html7 = unpackConfig.html) ? void 0 : _unpackConfig_html7.headTag) || '',
|
|
150
|
+
...null == (_unpackConfig_html8 = unpackConfig.html) ? void 0 : _unpackConfig_html8.templateParameters
|
|
151
151
|
},
|
|
152
152
|
minify: false,
|
|
153
153
|
chunks: [
|
|
154
154
|
'main'
|
|
155
155
|
]
|
|
156
156
|
}),
|
|
157
|
-
(null
|
|
158
|
-
(null
|
|
157
|
+
(null == (_unpackConfig_performance = unpackConfig.performance) ? void 0 : _unpackConfig_performance.bundleAnalyze) && (0, external_utils_cjs_namespaceObject.isProd)() && new BundleAnalyzerPlugin(),
|
|
158
|
+
(null == (_unpackConfig_performance1 = unpackConfig.performance) ? void 0 : _unpackConfig_performance1.removeMomentLocale) && new IgnorePlugin({
|
|
159
159
|
resourceRegExp: /^\.\/locale$/,
|
|
160
160
|
contextRegExp: /moment$/
|
|
161
161
|
}),
|
|
162
|
-
(null
|
|
162
|
+
(null == (_unpackConfig_build6 = unpackConfig.build) ? void 0 : _unpackConfig_build6.copy) && new CopyPlugin({
|
|
163
163
|
patterns: unpackConfig.build.copy
|
|
164
164
|
}),
|
|
165
|
-
(null
|
|
165
|
+
(null == (_unpackConfig_build7 = unpackConfig.build) ? void 0 : _unpackConfig_build7.typeCheck) && (0, external_utils_cjs_namespaceObject.isDev)() && isTs && new TsCheckerRspackPlugin({
|
|
166
166
|
typescript: {
|
|
167
167
|
mode: 'readonly',
|
|
168
168
|
memoryLimit: 8192,
|
|
@@ -194,18 +194,18 @@ var __webpack_exports__ = {};
|
|
|
194
194
|
alias: {
|
|
195
195
|
'@': external_node_path_default().resolve(unpackConfig.root, 'src'),
|
|
196
196
|
...isTs ? getAliasFromTsconfig() : {},
|
|
197
|
-
...null
|
|
197
|
+
...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
|
|
198
198
|
},
|
|
199
199
|
extensions: [
|
|
200
200
|
'.tsx',
|
|
201
201
|
'.ts',
|
|
202
202
|
'.jsx',
|
|
203
203
|
'.js',
|
|
204
|
-
...(null
|
|
204
|
+
...(null == (_unpackConfig_resolve1 = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve1.extensions) || []
|
|
205
205
|
]
|
|
206
206
|
},
|
|
207
207
|
experiments: {
|
|
208
|
-
lazyCompilation: (null
|
|
208
|
+
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && (0, external_utils_cjs_namespaceObject.isDevServer)(),
|
|
209
209
|
css: false,
|
|
210
210
|
...isRspack && (0, external_utils_cjs_namespaceObject.isDev)() ? {
|
|
211
211
|
incremental: true
|
|
@@ -213,7 +213,7 @@ var __webpack_exports__ = {};
|
|
|
213
213
|
},
|
|
214
214
|
optimization: {
|
|
215
215
|
moduleIds: (0, external_utils_cjs_namespaceObject.isDev)() ? 'named' : 'deterministic',
|
|
216
|
-
minimize: Boolean(null
|
|
216
|
+
minimize: Boolean(null == (_unpackConfig_build8 = unpackConfig.build) ? void 0 : _unpackConfig_build8.minify),
|
|
217
217
|
minimizer: [
|
|
218
218
|
new external_jsMinify_cjs_namespaceObject.JsMinifyPlugin({
|
|
219
219
|
target: external_constants_cjs_namespaceObject.ESBUILD_TARGET
|
|
@@ -221,14 +221,14 @@ var __webpack_exports__ = {};
|
|
|
221
221
|
new minimizer_cjs_namespaceObject.LightningcssMinifyPlugin(minifyOptions.lightningcss)
|
|
222
222
|
]
|
|
223
223
|
},
|
|
224
|
-
cache: (null
|
|
224
|
+
cache: (null == (_unpackConfig_build9 = unpackConfig.build) ? void 0 : _unpackConfig_build9.cache) && 'webpack' === unpackConfig.bundler ? {
|
|
225
225
|
type: 'filesystem'
|
|
226
226
|
} : void 0,
|
|
227
227
|
watchOptions: {
|
|
228
228
|
ignored: /[\\/](?:\.git|node_modules)[\\/]/
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
|
-
config = (null
|
|
231
|
+
config = (null == (_unpackConfig_experiments = unpackConfig.experiments) ? void 0 : _unpackConfig_experiments.css) ? (0, external_experimentCss_cjs_namespaceObject.applyExperimentCssConfig)({
|
|
232
232
|
config,
|
|
233
233
|
unpackConfig
|
|
234
234
|
}) : (0, external_css_cjs_namespaceObject.applyCssConfig)({
|
|
@@ -51,7 +51,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
51
51
|
const definePlugin = (define)=>isRspack ? new __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack.DefinePlugin(define) : new __WEBPACK_EXTERNAL_MODULE_webpack__["default"].DefinePlugin(define);
|
|
52
52
|
const JS_FILENAME = (0, __WEBPACK_EXTERNAL_MODULE__helper_js_3f3fef5c__.getOutputFilename)({
|
|
53
53
|
type: 'js',
|
|
54
|
-
hash: null
|
|
54
|
+
hash: null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.filenameHash
|
|
55
55
|
});
|
|
56
56
|
const IgnorePlugin = isRspack ? __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack.IgnorePlugin : __WEBPACK_EXTERNAL_MODULE_webpack__["default"].IgnorePlugin;
|
|
57
57
|
const CopyPlugin = isRspack ? __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack.CopyRspackPlugin : CopyWebpackPlugin;
|
|
@@ -59,13 +59,13 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
59
59
|
const isTs = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].existsSync(tsconfigPath);
|
|
60
60
|
const getAliasFromTsconfig = ()=>{
|
|
61
61
|
var _json5_parse_compilerOptions, _json5_parse;
|
|
62
|
-
const paths = null
|
|
62
|
+
const paths = null == (_json5_parse = __WEBPACK_EXTERNAL_MODULE_json5__["default"].parse(__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].readFileSync(tsconfigPath, 'utf-8'))) ? void 0 : null == (_json5_parse_compilerOptions = _json5_parse.compilerOptions) ? void 0 : _json5_parse_compilerOptions.paths;
|
|
63
63
|
return paths ? Object.keys(paths).reduce((acc, key)=>{
|
|
64
64
|
acc[key.replace(/\/\*$/, '')] = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, paths[key][0].replace(/\/\*$/, ''));
|
|
65
65
|
return acc;
|
|
66
66
|
}, {}) : {};
|
|
67
67
|
};
|
|
68
|
-
const minifyOptions = (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isPlainObject)(null
|
|
68
|
+
const minifyOptions = (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isPlainObject)(null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.minify) ? null == (_unpackConfig_build2 = unpackConfig.build) ? void 0 : _unpackConfig_build2.minify : {};
|
|
69
69
|
const PluginProgress = isRspack ? __WEBPACK_EXTERNAL_MODULE__plugin_progress_rspack_js_7c160de9__.RspackPluginProgress : __WEBPACK_EXTERNAL_MODULE__plugin_progress_webpack_js_077e3654__.WebpackPluginProgress;
|
|
70
70
|
let config = {
|
|
71
71
|
context: unpackConfig.root,
|
|
@@ -76,17 +76,17 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
76
76
|
stats: 'errors-only',
|
|
77
77
|
output: {
|
|
78
78
|
clean: true,
|
|
79
|
-
path: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, null
|
|
79
|
+
path: __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, null == (_unpackConfig_build3 = unpackConfig.build) ? void 0 : _unpackConfig_build3.outDir),
|
|
80
80
|
filename: JS_FILENAME,
|
|
81
81
|
chunkFilename: JS_FILENAME,
|
|
82
82
|
crossOriginLoading: 'anonymous',
|
|
83
83
|
pathinfo: false,
|
|
84
|
-
publicPath: null
|
|
84
|
+
publicPath: null == (_unpackConfig_build4 = unpackConfig.build) ? void 0 : _unpackConfig_build4.publicPath
|
|
85
85
|
},
|
|
86
86
|
infrastructureLogging: {
|
|
87
87
|
level: 'warn'
|
|
88
88
|
},
|
|
89
|
-
devtool: null
|
|
89
|
+
devtool: null == (_unpackConfig_build5 = unpackConfig.build) ? void 0 : _unpackConfig_build5.sourceMap,
|
|
90
90
|
module: {
|
|
91
91
|
rules: [
|
|
92
92
|
{
|
|
@@ -102,30 +102,30 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
102
102
|
plugins: [
|
|
103
103
|
unpackConfig.define && definePlugin(unpackConfig.define),
|
|
104
104
|
!unpackConfig.mpa && new HtmlPlugin({
|
|
105
|
-
template: (null
|
|
106
|
-
templateContent: (null
|
|
105
|
+
template: (null == (_unpackConfig_html = unpackConfig.html) ? void 0 : _unpackConfig_html.template) || (isRspack ? void 0 : ''),
|
|
106
|
+
templateContent: (null == (_unpackConfig_html1 = unpackConfig.html) ? void 0 : _unpackConfig_html1.templateContent) || ((null == (_unpackConfig_html2 = unpackConfig.html) ? void 0 : _unpackConfig_html2.template) ? isRspack ? void 0 : false : __WEBPACK_EXTERNAL_MODULE__constants_js_59e7fa1b__.TEMPLATE_CONTENT),
|
|
107
107
|
templateParameters: {
|
|
108
|
-
mountId: null
|
|
109
|
-
title: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isFunction)(null
|
|
108
|
+
mountId: null == (_unpackConfig_html3 = unpackConfig.html) ? void 0 : _unpackConfig_html3.mountId,
|
|
109
|
+
title: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isFunction)(null == (_unpackConfig_html4 = unpackConfig.html) ? void 0 : _unpackConfig_html4.title) ? null == (_unpackConfig_html5 = unpackConfig.html) ? void 0 : _unpackConfig_html5.title({
|
|
110
110
|
entryName: 'index'
|
|
111
|
-
}) : (null
|
|
112
|
-
headTag: (null
|
|
113
|
-
...null
|
|
111
|
+
}) : (null == (_unpackConfig_html6 = unpackConfig.html) ? void 0 : _unpackConfig_html6.title) || '',
|
|
112
|
+
headTag: (null == (_unpackConfig_html7 = unpackConfig.html) ? void 0 : _unpackConfig_html7.headTag) || '',
|
|
113
|
+
...null == (_unpackConfig_html8 = unpackConfig.html) ? void 0 : _unpackConfig_html8.templateParameters
|
|
114
114
|
},
|
|
115
115
|
minify: false,
|
|
116
116
|
chunks: [
|
|
117
117
|
'main'
|
|
118
118
|
]
|
|
119
119
|
}),
|
|
120
|
-
(null
|
|
121
|
-
(null
|
|
120
|
+
(null == (_unpackConfig_performance = unpackConfig.performance) ? void 0 : _unpackConfig_performance.bundleAnalyze) && (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isProd)() && new BundleAnalyzerPlugin(),
|
|
121
|
+
(null == (_unpackConfig_performance1 = unpackConfig.performance) ? void 0 : _unpackConfig_performance1.removeMomentLocale) && new IgnorePlugin({
|
|
122
122
|
resourceRegExp: /^\.\/locale$/,
|
|
123
123
|
contextRegExp: /moment$/
|
|
124
124
|
}),
|
|
125
|
-
(null
|
|
125
|
+
(null == (_unpackConfig_build6 = unpackConfig.build) ? void 0 : _unpackConfig_build6.copy) && new CopyPlugin({
|
|
126
126
|
patterns: unpackConfig.build.copy
|
|
127
127
|
}),
|
|
128
|
-
(null
|
|
128
|
+
(null == (_unpackConfig_build7 = unpackConfig.build) ? void 0 : _unpackConfig_build7.typeCheck) && (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDev)() && isTs && new TsCheckerRspackPlugin({
|
|
129
129
|
typescript: {
|
|
130
130
|
mode: 'readonly',
|
|
131
131
|
memoryLimit: 8192,
|
|
@@ -157,18 +157,18 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
157
157
|
alias: {
|
|
158
158
|
'@': __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__["default"].resolve(unpackConfig.root, 'src'),
|
|
159
159
|
...isTs ? getAliasFromTsconfig() : {},
|
|
160
|
-
...null
|
|
160
|
+
...null == (_unpackConfig_resolve = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve.alias
|
|
161
161
|
},
|
|
162
162
|
extensions: [
|
|
163
163
|
'.tsx',
|
|
164
164
|
'.ts',
|
|
165
165
|
'.jsx',
|
|
166
166
|
'.js',
|
|
167
|
-
...(null
|
|
167
|
+
...(null == (_unpackConfig_resolve1 = unpackConfig.resolve) ? void 0 : _unpackConfig_resolve1.extensions) || []
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
170
|
experiments: {
|
|
171
|
-
lazyCompilation: (null
|
|
171
|
+
lazyCompilation: (null == (_unpackConfig_dev = unpackConfig.dev) ? void 0 : _unpackConfig_dev.lazyCompilation) && (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDevServer)(),
|
|
172
172
|
css: false,
|
|
173
173
|
...isRspack && (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDev)() ? {
|
|
174
174
|
incremental: true
|
|
@@ -176,7 +176,7 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
176
176
|
},
|
|
177
177
|
optimization: {
|
|
178
178
|
moduleIds: (0, __WEBPACK_EXTERNAL_MODULE__utils_js_db66b9f7__.isDev)() ? 'named' : 'deterministic',
|
|
179
|
-
minimize: Boolean(null
|
|
179
|
+
minimize: Boolean(null == (_unpackConfig_build8 = unpackConfig.build) ? void 0 : _unpackConfig_build8.minify),
|
|
180
180
|
minimizer: [
|
|
181
181
|
new __WEBPACK_EXTERNAL_MODULE__jsMinify_js_f62b6778__.JsMinifyPlugin({
|
|
182
182
|
target: __WEBPACK_EXTERNAL_MODULE__constants_js_59e7fa1b__.ESBUILD_TARGET
|
|
@@ -184,14 +184,14 @@ async function getBundlerConfig(unpackConfig) {
|
|
|
184
184
|
new __WEBPACK_EXTERNAL_MODULE__lightningcss_minimizer_js_13e64036__.LightningcssMinifyPlugin(minifyOptions.lightningcss)
|
|
185
185
|
]
|
|
186
186
|
},
|
|
187
|
-
cache: (null
|
|
187
|
+
cache: (null == (_unpackConfig_build9 = unpackConfig.build) ? void 0 : _unpackConfig_build9.cache) && 'webpack' === unpackConfig.bundler ? {
|
|
188
188
|
type: 'filesystem'
|
|
189
189
|
} : void 0,
|
|
190
190
|
watchOptions: {
|
|
191
191
|
ignored: /[\\/](?:\.git|node_modules)[\\/]/
|
|
192
192
|
}
|
|
193
193
|
};
|
|
194
|
-
config = (null
|
|
194
|
+
config = (null == (_unpackConfig_experiments = unpackConfig.experiments) ? void 0 : _unpackConfig_experiments.css) ? (0, __WEBPACK_EXTERNAL_MODULE__experimentCss_js_9e7bd201__.applyExperimentCssConfig)({
|
|
195
195
|
config,
|
|
196
196
|
unpackConfig
|
|
197
197
|
}) : (0, __WEBPACK_EXTERNAL_MODULE__css_js_1fdaa05b__.applyCssConfig)({
|
|
@@ -56,7 +56,7 @@ class JsMinifyPlugin {
|
|
|
56
56
|
const { implementation, ...transformOptions } = this.options;
|
|
57
57
|
const meta = JSON.stringify({
|
|
58
58
|
name: PLUGIN_NAME,
|
|
59
|
-
version: "1.7.
|
|
59
|
+
version: "1.7.11",
|
|
60
60
|
options: transformOptions
|
|
61
61
|
});
|
|
62
62
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
|
@@ -20,7 +20,7 @@ class JsMinifyPlugin {
|
|
|
20
20
|
const { implementation, ...transformOptions } = this.options;
|
|
21
21
|
const meta = JSON.stringify({
|
|
22
22
|
name: PLUGIN_NAME,
|
|
23
|
-
version: "1.7.
|
|
23
|
+
version: "1.7.11",
|
|
24
24
|
options: transformOptions
|
|
25
25
|
});
|
|
26
26
|
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation)=>{
|
package/dist/colors.cjs
CHANGED
|
@@ -33,7 +33,7 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
default: ()=>
|
|
36
|
+
default: ()=>src_colors
|
|
37
37
|
});
|
|
38
38
|
const external_picocolors_namespaceObject = require("picocolors");
|
|
39
39
|
var external_picocolors_default = /*#__PURE__*/ __webpack_require__.n(external_picocolors_namespaceObject);
|
|
@@ -73,7 +73,7 @@ const colors = {
|
|
|
73
73
|
return output;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
const
|
|
76
|
+
const src_colors = colors;
|
|
77
77
|
exports["default"] = __webpack_exports__["default"];
|
|
78
78
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
79
79
|
"default"
|
package/dist/colors.js
CHANGED
package/dist/config.js
CHANGED
|
@@ -6,7 +6,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_jiti__ from "jiti";
|
|
7
7
|
import * as __WEBPACK_EXTERNAL_MODULE__logger_js_c2be5186__ from "./logger.js";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__ from "./utils.js";
|
|
9
|
-
var
|
|
9
|
+
var config_filename = __webpack_fileURLToPath__(import.meta.url);
|
|
10
10
|
async function loadConfig({ cliOptions, command }) {
|
|
11
11
|
if ('build' === command) (0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)((null == cliOptions ? void 0 : cliOptions.watch) ? 'development' : 'production');
|
|
12
12
|
else {
|
|
@@ -16,7 +16,7 @@ async function loadConfig({ cliOptions, command }) {
|
|
|
16
16
|
const configPath = resolveConfigPath(process.cwd(), null == cliOptions ? void 0 : cliOptions.config);
|
|
17
17
|
let userConfig = {};
|
|
18
18
|
if (configPath) {
|
|
19
|
-
const jiti = (0, __WEBPACK_EXTERNAL_MODULE_jiti__.createJiti)(
|
|
19
|
+
const jiti = (0, __WEBPACK_EXTERNAL_MODULE_jiti__.createJiti)(config_filename, {
|
|
20
20
|
moduleCache: false,
|
|
21
21
|
interopDefault: true,
|
|
22
22
|
nativeModules: [
|
package/dist/createUnpack.cjs
CHANGED
|
@@ -86,7 +86,7 @@ function createUnpack() {
|
|
|
86
86
|
return {
|
|
87
87
|
build: async (unpackConfig)=>{
|
|
88
88
|
(0, external_utils_cjs_namespaceObject.setNodeEnv)('production');
|
|
89
|
-
console.log(external_colors_cjs_default().rainbow("unpack v1.7.
|
|
89
|
+
console.log(external_colors_cjs_default().rainbow("unpack v1.7.11"), external_colors_cjs_default().green('building for production...'));
|
|
90
90
|
const config = await resolveConfig(unpackConfig);
|
|
91
91
|
(0, index_cjs_namespaceObject.bundlerBuild)(config);
|
|
92
92
|
},
|
|
@@ -99,7 +99,7 @@ function createUnpack() {
|
|
|
99
99
|
},
|
|
100
100
|
watch: async (unpackConfig)=>{
|
|
101
101
|
(0, external_utils_cjs_namespaceObject.setNodeEnv)('development');
|
|
102
|
-
console.log(external_colors_cjs_default().rainbow("unpack v1.7.
|
|
102
|
+
console.log(external_colors_cjs_default().rainbow("unpack v1.7.11"), external_colors_cjs_default().green('building for development...'));
|
|
103
103
|
const config = await resolveConfig(unpackConfig);
|
|
104
104
|
(0, index_cjs_namespaceObject.bundlerBuild)(config);
|
|
105
105
|
}
|
package/dist/createUnpack.js
CHANGED
|
@@ -50,7 +50,7 @@ function createUnpack() {
|
|
|
50
50
|
return {
|
|
51
51
|
build: async (unpackConfig)=>{
|
|
52
52
|
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('production');
|
|
53
|
-
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.
|
|
53
|
+
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.11"), __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].green('building for production...'));
|
|
54
54
|
const config = await resolveConfig(unpackConfig);
|
|
55
55
|
(0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerBuild)(config);
|
|
56
56
|
},
|
|
@@ -63,7 +63,7 @@ function createUnpack() {
|
|
|
63
63
|
},
|
|
64
64
|
watch: async (unpackConfig)=>{
|
|
65
65
|
(0, __WEBPACK_EXTERNAL_MODULE__utils_js_d88b7fe1__.setNodeEnv)('development');
|
|
66
|
-
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.
|
|
66
|
+
console.log(__WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].rainbow("unpack v1.7.11"), __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__["default"].green('building for development...'));
|
|
67
67
|
const config = await resolveConfig(unpackConfig);
|
|
68
68
|
(0, __WEBPACK_EXTERNAL_MODULE__run_index_js_f05de1fb__.bundlerBuild)(config);
|
|
69
69
|
}
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ export * from "./config.js";
|
|
|
13
13
|
export * from "./watchFiles.js";
|
|
14
14
|
export * from "./global.js";
|
|
15
15
|
var __webpack_modules__ = {
|
|
16
|
-
"
|
|
16
|
+
"src/colors": function(module) {
|
|
17
17
|
module.exports = __WEBPACK_EXTERNAL_MODULE__colors_js_b738ede3__;
|
|
18
18
|
},
|
|
19
19
|
"src/types/index": function(module) {
|
|
@@ -42,7 +42,7 @@ function __webpack_require__(moduleId) {
|
|
|
42
42
|
var core_ = __webpack_require__("@rspack/core");
|
|
43
43
|
var external_webpack_ = __webpack_require__("webpack");
|
|
44
44
|
__webpack_require__("src/types/index");
|
|
45
|
-
var external_colors_js_ = __webpack_require__("
|
|
45
|
+
var external_colors_js_ = __webpack_require__("src/colors");
|
|
46
46
|
var external_html_webpack_plugin_ = __webpack_require__("html-webpack-plugin");
|
|
47
47
|
var __webpack_exports__HtmlWebpackPlugin = external_html_webpack_plugin_["default"];
|
|
48
48
|
var __webpack_exports__colors = external_colors_js_["default"];
|
|
@@ -24,7 +24,7 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
default: ()=>
|
|
27
|
+
default: ()=>loader
|
|
28
28
|
});
|
|
29
29
|
const external_node_buffer_namespaceObject = require("node:buffer");
|
|
30
30
|
const external_lightningcss_namespaceObject = require("lightningcss");
|
|
@@ -49,7 +49,7 @@ async function LightningcssLoader(source, prevSourceMap) {
|
|
|
49
49
|
done(error);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
const
|
|
52
|
+
const loader = LightningcssLoader;
|
|
53
53
|
exports["default"] = __webpack_exports__["default"];
|
|
54
54
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
55
55
|
"default"
|