@unpackjs/core 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiled/css-loader/index.js +46 -46
- package/compiled/less-loader/index.js +8 -8
- package/compiled/postcss-loader/index.js +11 -11
- package/compiled/sass-loader/index.js +8 -8
- package/compiled/style-loader/index.js +10 -10
- package/dist/bundler-config/cache.cjs +105 -0
- package/dist/bundler-config/cache.d.ts +6 -0
- package/dist/bundler-config/cache.d.ts.map +1 -0
- package/dist/bundler-config/cache.js +63 -0
- package/dist/bundler-config/chunkSplit.js +7 -7
- package/dist/bundler-config/css.cjs +4 -3
- package/dist/bundler-config/css.d.ts.map +1 -1
- package/dist/bundler-config/css.js +33 -32
- package/dist/bundler-config/experimentCss.cjs +4 -3
- package/dist/bundler-config/experimentCss.d.ts.map +1 -1
- package/dist/bundler-config/experimentCss.js +29 -28
- package/dist/bundler-config/{helper.cjs → helpers.cjs} +2 -2
- package/dist/bundler-config/{helper.d.ts → helpers.d.ts} +1 -1
- package/dist/bundler-config/helpers.d.ts.map +1 -0
- package/dist/bundler-config/helpers.js +39 -0
- package/dist/bundler-config/index.cjs +26 -17
- package/dist/bundler-config/index.d.ts.map +1 -1
- package/dist/bundler-config/index.js +68 -59
- package/dist/bundler-config/jsMinify.cjs +15 -16
- package/dist/bundler-config/jsMinify.d.ts +3 -11
- package/dist/bundler-config/jsMinify.d.ts.map +1 -1
- package/dist/bundler-config/jsMinify.js +17 -18
- package/dist/bundler-config/oxlint/.oxlintrc.json +30 -0
- package/dist/bundler-config/oxlint/plugin.cjs +143 -0
- package/dist/bundler-config/oxlint/plugin.d.ts +10 -0
- package/dist/bundler-config/oxlint/plugin.d.ts.map +1 -0
- package/dist/bundler-config/oxlint/plugin.js +104 -0
- package/dist/bundler-config/progress/helpers.cjs +112 -0
- package/dist/bundler-config/progress/helpers.d.ts +4 -0
- package/dist/bundler-config/progress/helpers.d.ts.map +1 -0
- package/dist/bundler-config/progress/helpers.js +67 -0
- package/dist/bundler-config/progress/rspack.cjs +69 -0
- package/dist/bundler-config/progress/rspack.d.ts +8 -0
- package/dist/bundler-config/progress/rspack.d.ts.map +1 -0
- package/dist/bundler-config/progress/rspack.js +37 -0
- package/dist/bundler-config/progress/webpack.cjs +86 -0
- package/dist/bundler-config/progress/webpack.d.ts +9 -0
- package/dist/bundler-config/progress/webpack.d.ts.map +1 -0
- package/dist/bundler-config/progress/webpack.js +44 -0
- package/dist/colors.cjs +3 -4
- package/dist/colors.d.ts +1 -2
- package/dist/colors.d.ts.map +1 -1
- package/dist/colors.js +3 -4
- package/dist/config.cjs +5 -2
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +19 -19
- package/dist/constants.cjs +7 -11
- package/dist/constants.d.ts +0 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -4
- package/dist/createUnpack.cjs +2 -12
- package/dist/createUnpack.js +19 -19
- package/dist/fs.cjs +82 -0
- package/dist/fs.d.ts +11 -0
- package/dist/fs.d.ts.map +1 -0
- package/dist/fs.js +28 -0
- package/dist/index.cjs +19 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -42
- package/dist/lightningcss/loader.cjs +0 -2
- package/dist/lightningcss/loader.d.ts.map +1 -1
- package/dist/lightningcss/loader.js +4 -6
- package/dist/lightningcss/minimizer.cjs +7 -9
- package/dist/lightningcss/minimizer.d.ts.map +1 -1
- package/dist/lightningcss/minimizer.js +9 -11
- package/dist/logger.cjs +7 -7
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +12 -11
- package/dist/openBrowser.js +7 -7
- package/dist/prebundleDeps.cjs +5 -5
- package/dist/prebundleDeps.d.ts.map +1 -1
- package/dist/prebundleDeps.js +49 -48
- package/dist/progressBar.cjs +3 -24
- package/dist/progressBar.d.ts +1 -6
- package/dist/progressBar.d.ts.map +1 -1
- package/dist/progressBar.js +5 -16
- package/dist/reporter.cjs +17 -9
- package/dist/reporter.d.ts.map +1 -1
- package/dist/reporter.js +31 -22
- package/dist/run/build.js +8 -8
- package/dist/run/dev.cjs +3 -4
- package/dist/run/dev.d.ts.map +1 -1
- package/dist/run/dev.js +23 -23
- package/dist/typed-css-modules/loader.js +12 -12
- package/dist/typed-css-modules/plugin.cjs +1 -1
- package/dist/typed-css-modules/plugin.js +13 -13
- package/dist/typed-css-modules/utils.js +6 -6
- package/dist/types/config.d.ts +2 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/oxc.cjs +18 -0
- package/dist/types/oxc.d.ts +10 -0
- package/dist/types/oxc.d.ts.map +1 -0
- package/dist/types/oxc.js +2 -0
- package/dist/utils.cjs +29 -26
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +18 -17
- package/dist/watchFiles.js +4 -4
- package/package.json +6 -6
- package/dist/bundler-config/helper.d.ts.map +0 -1
- package/dist/bundler-config/helper.js +0 -39
- package/dist/plugin-progress/rspack.cjs +0 -103
- package/dist/plugin-progress/rspack.d.ts +0 -9
- package/dist/plugin-progress/rspack.d.ts.map +0 -1
- package/dist/plugin-progress/rspack.js +0 -60
- package/dist/plugin-progress/webpack.cjs +0 -110
- package/dist/plugin-progress/webpack.d.ts +0 -9
- package/dist/plugin-progress/webpack.d.ts.map +0 -1
- package/dist/plugin-progress/webpack.js +0 -66
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
12
|
+
(()=>{
|
|
13
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
14
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: definition[key]
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
22
|
+
})();
|
|
23
|
+
(()=>{
|
|
24
|
+
__webpack_require__.r = (exports1)=>{
|
|
25
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
26
|
+
value: 'Module'
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
29
|
+
value: true
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
})();
|
|
33
|
+
var __webpack_exports__ = {};
|
|
34
|
+
__webpack_require__.r(__webpack_exports__);
|
|
35
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
+
applyCacheConfig: ()=>applyCacheConfig
|
|
37
|
+
});
|
|
38
|
+
const external_node_path_namespaceObject = require("node:path");
|
|
39
|
+
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
40
|
+
const external_config_cjs_namespaceObject = require("../config.cjs");
|
|
41
|
+
const external_fs_cjs_namespaceObject = require("../fs.cjs");
|
|
42
|
+
const external_logger_cjs_namespaceObject = require("../logger.cjs");
|
|
43
|
+
const external_utils_cjs_namespaceObject = require("../utils.cjs");
|
|
44
|
+
async function getBuildDependencies(root, userBuildDependencies) {
|
|
45
|
+
const rootPackageJson = external_node_path_default().join(root, 'package.json');
|
|
46
|
+
const browserslistConfig = external_node_path_default().join(root, '.browserslistrc');
|
|
47
|
+
const tsconfigPath = external_node_path_default().join(root, 'tsconfig.json');
|
|
48
|
+
const buildDependencies = {};
|
|
49
|
+
if (await (0, external_fs_cjs_namespaceObject.isFileExists)(rootPackageJson)) buildDependencies.packageJson = [
|
|
50
|
+
rootPackageJson
|
|
51
|
+
];
|
|
52
|
+
if (await (0, external_fs_cjs_namespaceObject.isFileExists)(tsconfigPath)) buildDependencies.tsconfig = [
|
|
53
|
+
tsconfigPath
|
|
54
|
+
];
|
|
55
|
+
buildDependencies.unpackConfig = [
|
|
56
|
+
(0, external_config_cjs_namespaceObject.resolveConfigPath)(root)
|
|
57
|
+
];
|
|
58
|
+
if (await (0, external_fs_cjs_namespaceObject.isFileExists)(browserslistConfig)) buildDependencies.browserslistrc = [
|
|
59
|
+
browserslistConfig
|
|
60
|
+
];
|
|
61
|
+
const tailwindExts = [
|
|
62
|
+
'ts',
|
|
63
|
+
'js',
|
|
64
|
+
'cjs',
|
|
65
|
+
'mjs'
|
|
66
|
+
];
|
|
67
|
+
const configs = tailwindExts.map((ext)=>external_node_path_default().join(root, `tailwind.config.${ext}`));
|
|
68
|
+
const tailwindConfig = (0, external_fs_cjs_namespaceObject.findExists)(configs);
|
|
69
|
+
if (tailwindConfig) buildDependencies.tailwindcss = [
|
|
70
|
+
tailwindConfig
|
|
71
|
+
];
|
|
72
|
+
return {
|
|
73
|
+
...buildDependencies,
|
|
74
|
+
...userBuildDependencies
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
async function applyCacheConfig({ config, unpackConfig }) {
|
|
78
|
+
var _unpackConfig_build;
|
|
79
|
+
if (true === !(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache)) return config;
|
|
80
|
+
const isRspack = 'rspack' === unpackConfig.bundler;
|
|
81
|
+
const buildDependencies = await getBuildDependencies(unpackConfig.root);
|
|
82
|
+
external_logger_cjs_namespaceObject.logger.info('persistent cache enabled');
|
|
83
|
+
config = isRspack ? (0, external_utils_cjs_namespaceObject.mergeConfig)(config, {
|
|
84
|
+
cache: true,
|
|
85
|
+
experiments: {
|
|
86
|
+
cache: {
|
|
87
|
+
type: 'persistent',
|
|
88
|
+
buildDependencies: Object.values(buildDependencies).flat()
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}) : (0, external_utils_cjs_namespaceObject.mergeConfig)(config, {
|
|
92
|
+
cache: {
|
|
93
|
+
type: 'filesystem',
|
|
94
|
+
buildDependencies
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return config;
|
|
98
|
+
}
|
|
99
|
+
exports.applyCacheConfig = __webpack_exports__.applyCacheConfig;
|
|
100
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
101
|
+
"applyCacheConfig"
|
|
102
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
103
|
+
Object.defineProperty(exports, '__esModule', {
|
|
104
|
+
value: true
|
|
105
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BundlerConfiguration, UnpackConfig } from '../types/index';
|
|
2
|
+
export declare function applyCacheConfig({ config, unpackConfig, }: {
|
|
3
|
+
config: BundlerConfiguration;
|
|
4
|
+
unpackConfig: UnpackConfig;
|
|
5
|
+
}): Promise<BundlerConfiguration>;
|
|
6
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/bundler-config/cache.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAwCzE,wBAAsB,gBAAgB,CAAC,EACrC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAwBhC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import __rslib_shim_module__ from 'module';
|
|
2
|
+
/*#__PURE__*/ import.meta.url;
|
|
3
|
+
import external_node_path_default from "node:path";
|
|
4
|
+
import { resolveConfigPath } from "../config.js";
|
|
5
|
+
import { findExists, isFileExists } from "../fs.js";
|
|
6
|
+
import { logger } from "../logger.js";
|
|
7
|
+
import { mergeConfig } from "../utils.js";
|
|
8
|
+
async function getBuildDependencies(root, userBuildDependencies) {
|
|
9
|
+
const rootPackageJson = external_node_path_default.join(root, 'package.json');
|
|
10
|
+
const browserslistConfig = external_node_path_default.join(root, '.browserslistrc');
|
|
11
|
+
const tsconfigPath = external_node_path_default.join(root, 'tsconfig.json');
|
|
12
|
+
const buildDependencies = {};
|
|
13
|
+
if (await isFileExists(rootPackageJson)) buildDependencies.packageJson = [
|
|
14
|
+
rootPackageJson
|
|
15
|
+
];
|
|
16
|
+
if (await isFileExists(tsconfigPath)) buildDependencies.tsconfig = [
|
|
17
|
+
tsconfigPath
|
|
18
|
+
];
|
|
19
|
+
buildDependencies.unpackConfig = [
|
|
20
|
+
resolveConfigPath(root)
|
|
21
|
+
];
|
|
22
|
+
if (await isFileExists(browserslistConfig)) buildDependencies.browserslistrc = [
|
|
23
|
+
browserslistConfig
|
|
24
|
+
];
|
|
25
|
+
const tailwindExts = [
|
|
26
|
+
'ts',
|
|
27
|
+
'js',
|
|
28
|
+
'cjs',
|
|
29
|
+
'mjs'
|
|
30
|
+
];
|
|
31
|
+
const configs = tailwindExts.map((ext)=>external_node_path_default.join(root, `tailwind.config.${ext}`));
|
|
32
|
+
const tailwindConfig = findExists(configs);
|
|
33
|
+
if (tailwindConfig) buildDependencies.tailwindcss = [
|
|
34
|
+
tailwindConfig
|
|
35
|
+
];
|
|
36
|
+
return {
|
|
37
|
+
...buildDependencies,
|
|
38
|
+
...userBuildDependencies
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
async function applyCacheConfig({ config, unpackConfig }) {
|
|
42
|
+
var _unpackConfig_build;
|
|
43
|
+
if (true === !(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.cache)) return config;
|
|
44
|
+
const isRspack = 'rspack' === unpackConfig.bundler;
|
|
45
|
+
const buildDependencies = await getBuildDependencies(unpackConfig.root);
|
|
46
|
+
logger.info('persistent cache enabled');
|
|
47
|
+
config = isRspack ? mergeConfig(config, {
|
|
48
|
+
cache: true,
|
|
49
|
+
experiments: {
|
|
50
|
+
cache: {
|
|
51
|
+
type: 'persistent',
|
|
52
|
+
buildDependencies: Object.values(buildDependencies).flat()
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}) : mergeConfig(config, {
|
|
56
|
+
cache: {
|
|
57
|
+
type: 'filesystem',
|
|
58
|
+
buildDependencies
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
return config;
|
|
62
|
+
}
|
|
63
|
+
export { applyCacheConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import __rslib_shim_module__ from 'module';
|
|
2
2
|
/*#__PURE__*/ import.meta.url;
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import external_node_assert_default from "node:assert";
|
|
4
|
+
import { NODE_MODULES_REGEX } from "../constants.js";
|
|
5
|
+
import { setValueByPath } from "../utils.js";
|
|
6
6
|
function getForceSplittingGroups(forceSplitting, strategy) {
|
|
7
7
|
const cacheGroups = {};
|
|
8
8
|
const pairs = Array.isArray(forceSplitting) ? forceSplitting.map((regexp, index)=>[
|
|
@@ -44,7 +44,7 @@ function splitByExperience(ctx) {
|
|
|
44
44
|
}
|
|
45
45
|
function splitBySize(ctx) {
|
|
46
46
|
const { forceSplittingGroups, defaultConfig, chunkSplit } = ctx;
|
|
47
|
-
(
|
|
47
|
+
external_node_assert_default('split-by-size' === chunkSplit.strategy);
|
|
48
48
|
return {
|
|
49
49
|
...defaultConfig,
|
|
50
50
|
minSize: chunkSplit.minSize ?? 0,
|
|
@@ -78,7 +78,7 @@ function splitByModule(ctx) {
|
|
|
78
78
|
...forceSplittingGroups,
|
|
79
79
|
vendors: {
|
|
80
80
|
priority: -9,
|
|
81
|
-
test:
|
|
81
|
+
test: NODE_MODULES_REGEX,
|
|
82
82
|
name (module) {
|
|
83
83
|
return module ? getPackageNameFromModulePath(module.context) : void 0;
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function singleVendor(ctx) {
|
|
|
103
103
|
const { defaultConfig, forceSplittingGroups } = ctx;
|
|
104
104
|
const singleVendorCacheGroup = {
|
|
105
105
|
singleVendor: {
|
|
106
|
-
test:
|
|
106
|
+
test: NODE_MODULES_REGEX,
|
|
107
107
|
priority: 0,
|
|
108
108
|
chunks: 'all',
|
|
109
109
|
name: 'vendor',
|
|
@@ -140,7 +140,7 @@ const applyChunkSplitConfig = ({ config, unpackConfig })=>{
|
|
|
140
140
|
forceSplittingGroups,
|
|
141
141
|
chunkSplit
|
|
142
142
|
});
|
|
143
|
-
|
|
143
|
+
setValueByPath(config, [
|
|
144
144
|
'optimization',
|
|
145
145
|
'splitChunks'
|
|
146
146
|
], splitChunksOptions);
|
|
@@ -42,7 +42,7 @@ const external_mini_css_extract_plugin_namespaceObject = require("mini-css-extra
|
|
|
42
42
|
var external_mini_css_extract_plugin_default = /*#__PURE__*/ __webpack_require__.n(external_mini_css_extract_plugin_namespaceObject);
|
|
43
43
|
const external_constants_cjs_namespaceObject = require("../constants.cjs");
|
|
44
44
|
const external_utils_cjs_namespaceObject = require("../utils.cjs");
|
|
45
|
-
const
|
|
45
|
+
const external_helpers_cjs_namespaceObject = require("./helpers.cjs");
|
|
46
46
|
function applyCssConfig({ config, unpackConfig }) {
|
|
47
47
|
var _unpackConfig_css, _unpackConfig_build, _unpackConfig_css1, _unpackConfig_css2, _config_module_rules, _config_module, _config_module_rules1, _config_module1, _unpackConfig_css3, _unpackConfig_css4, _config_module_rules2, _config_module2;
|
|
48
48
|
const MiniCssExtractPlugin = 'rspack' === unpackConfig.bundler ? core_namespaceObject.rspack.CssExtractRspackPlugin : external_mini_css_extract_plugin_default();
|
|
@@ -94,7 +94,7 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
94
94
|
if (!(0, external_utils_cjs_namespaceObject.isDevServer)()) {
|
|
95
95
|
var _unpackConfig_build1;
|
|
96
96
|
config.plugins.push(new MiniCssExtractPlugin({
|
|
97
|
-
filename: (0,
|
|
97
|
+
filename: (0, external_helpers_cjs_namespaceObject.getOutputFilename)({
|
|
98
98
|
type: 'css',
|
|
99
99
|
hash: null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.filenameHash
|
|
100
100
|
})
|
|
@@ -127,7 +127,8 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
127
127
|
return {
|
|
128
128
|
loader: external_node_path_default().resolve(__dirname, '../lightningcss/loader.cjs'),
|
|
129
129
|
options: (0, external_utils_cjs_namespaceObject.mergeConfig)((null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.lightningcss) || {}, {
|
|
130
|
-
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
130
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap,
|
|
131
|
+
targets: external_constants_cjs_namespaceObject.LIGHTNINGCSS_TARGET
|
|
131
132
|
})
|
|
132
133
|
};
|
|
133
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/bundler-config/css.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAazE,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAkIvB"}
|
|
@@ -2,65 +2,65 @@ import __rslib_shim_module__ from 'module';
|
|
|
2
2
|
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
3
3
|
import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";
|
|
4
4
|
import { dirname as __webpack_dirname__ } from "node:path";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
5
|
+
import external_node_path_default from "node:path";
|
|
6
|
+
import { rspack } from "@rspack/core";
|
|
7
|
+
import external_mini_css_extract_plugin_default from "mini-css-extract-plugin";
|
|
8
|
+
import { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, CSS_NAMED_EXPORT, EXPORT_LOCALS_CONVENTION, LIGHTNINGCSS_TARGET, THREAD_OPTIONS } from "../constants.js";
|
|
9
|
+
import { getCompiledPkgPath, getUserDepPath, isDev, isDevServer, isFunction, isPlainObject, isRegExp, mergeConfig } from "../utils.js";
|
|
10
|
+
import { getOutputFilename } from "./helpers.js";
|
|
11
11
|
var css_dirname = __webpack_dirname__(__webpack_fileURLToPath__(import.meta.url));
|
|
12
12
|
function applyCssConfig({ config, unpackConfig }) {
|
|
13
13
|
var _unpackConfig_css, _unpackConfig_build, _unpackConfig_css1, _unpackConfig_css2, _config_module_rules, _config_module, _config_module_rules1, _config_module1, _unpackConfig_css3, _unpackConfig_css4, _config_module_rules2, _config_module2;
|
|
14
|
-
const MiniCssExtractPlugin = 'rspack' === unpackConfig.bundler ?
|
|
14
|
+
const MiniCssExtractPlugin = 'rspack' === unpackConfig.bundler ? rspack.CssExtractRspackPlugin : external_mini_css_extract_plugin_default;
|
|
15
15
|
let modules = null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.modules;
|
|
16
|
-
if (!
|
|
16
|
+
if (!isPlainObject(modules) && false !== modules) modules = {};
|
|
17
17
|
const getAutoOption = ()=>{
|
|
18
18
|
if (false === modules) return false;
|
|
19
19
|
const auto = modules.auto;
|
|
20
20
|
if (false === auto) return false;
|
|
21
21
|
return (resourcePath)=>{
|
|
22
|
-
if (resourcePath.includes('node_modules')) return
|
|
23
|
-
if (
|
|
24
|
-
if (
|
|
25
|
-
return
|
|
22
|
+
if (resourcePath.includes('node_modules')) return CSS_MODULES_REGEX.test(resourcePath);
|
|
23
|
+
if (isRegExp(auto)) return auto.test(resourcePath);
|
|
24
|
+
if (isFunction(auto)) return auto(resourcePath);
|
|
25
|
+
return CSS_MODULES_REGEX.test(resourcePath);
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
const getCommonRules = ({ importLoaders })=>{
|
|
29
29
|
var _unpackConfig_css;
|
|
30
30
|
return [
|
|
31
|
-
|
|
32
|
-
loader:
|
|
31
|
+
isDevServer() ? {
|
|
32
|
+
loader: getCompiledPkgPath('style-loader')
|
|
33
33
|
} : {
|
|
34
34
|
loader: MiniCssExtractPlugin.loader,
|
|
35
35
|
options: {
|
|
36
36
|
defaultExport: true
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
|
|
40
|
-
loader:
|
|
39
|
+
isDev() && {
|
|
40
|
+
loader: external_node_path_default.resolve(css_dirname, '../typed-css-modules/loader.cjs'),
|
|
41
41
|
options: {
|
|
42
42
|
modules
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
loader:
|
|
46
|
+
loader: getCompiledPkgPath('css-loader'),
|
|
47
47
|
options: {
|
|
48
48
|
importLoaders,
|
|
49
49
|
modules: {
|
|
50
50
|
auto: getAutoOption(),
|
|
51
|
-
localIdentName: false !== modules && (modules.localIdentName ||
|
|
52
|
-
exportLocalsConvention:
|
|
53
|
-
namedExport:
|
|
51
|
+
localIdentName: false !== modules && (modules.localIdentName || CSS_MODULES_LOCAL_IDENT_NAME),
|
|
52
|
+
exportLocalsConvention: EXPORT_LOCALS_CONVENTION,
|
|
53
|
+
namedExport: CSS_NAMED_EXPORT
|
|
54
54
|
},
|
|
55
55
|
sourceMap: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.sourceMap
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
].filter(Boolean);
|
|
59
59
|
};
|
|
60
|
-
if (!
|
|
60
|
+
if (!isDevServer()) {
|
|
61
61
|
var _unpackConfig_build1;
|
|
62
62
|
config.plugins.push(new MiniCssExtractPlugin({
|
|
63
|
-
filename:
|
|
63
|
+
filename: getOutputFilename({
|
|
64
64
|
type: 'css',
|
|
65
65
|
hash: null == (_unpackConfig_build1 = unpackConfig.build) ? void 0 : _unpackConfig_build1.filenameHash
|
|
66
66
|
})
|
|
@@ -74,15 +74,15 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
74
74
|
}),
|
|
75
75
|
(null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.parallel) && {
|
|
76
76
|
loader: require.resolve('thread-loader'),
|
|
77
|
-
options:
|
|
77
|
+
options: THREAD_OPTIONS
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
loader:
|
|
80
|
+
loader: getCompiledPkgPath('less-loader'),
|
|
81
81
|
options: {
|
|
82
|
-
lessOptions:
|
|
82
|
+
lessOptions: mergeConfig({
|
|
83
83
|
javascriptEnabled: true
|
|
84
84
|
}, (null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.less) || {}),
|
|
85
|
-
implementation:
|
|
85
|
+
implementation: getUserDepPath(unpackConfig.root, 'less'),
|
|
86
86
|
sourceMap: null == (_unpackConfig_css2 = unpackConfig.css) ? void 0 : _unpackConfig_css2.sourceMap
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -91,16 +91,17 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
91
91
|
const getLightningcssLoader = ()=>{
|
|
92
92
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
93
93
|
return {
|
|
94
|
-
loader:
|
|
95
|
-
options:
|
|
96
|
-
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
94
|
+
loader: external_node_path_default.resolve(css_dirname, '../lightningcss/loader.cjs'),
|
|
95
|
+
options: mergeConfig((null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.lightningcss) || {}, {
|
|
96
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap,
|
|
97
|
+
targets: LIGHTNINGCSS_TARGET
|
|
97
98
|
})
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
101
|
const getPostcssLoader = ()=>{
|
|
101
102
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
102
103
|
return {
|
|
103
|
-
loader:
|
|
104
|
+
loader: getCompiledPkgPath('postcss-loader'),
|
|
104
105
|
options: {
|
|
105
106
|
postcssOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.postcss,
|
|
106
107
|
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
@@ -127,10 +128,10 @@ function applyCssConfig({ config, unpackConfig }) {
|
|
|
127
128
|
importLoaders: 1
|
|
128
129
|
}),
|
|
129
130
|
{
|
|
130
|
-
loader:
|
|
131
|
+
loader: getCompiledPkgPath('sass-loader'),
|
|
131
132
|
options: {
|
|
132
133
|
api: 'modern-compiler',
|
|
133
|
-
implementation:
|
|
134
|
+
implementation: getUserDepPath(unpackConfig.root, [
|
|
134
135
|
'sass-embedded',
|
|
135
136
|
'sass'
|
|
136
137
|
]),
|
|
@@ -40,10 +40,10 @@ var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_no
|
|
|
40
40
|
const external_constants_cjs_namespaceObject = require("../constants.cjs");
|
|
41
41
|
const plugin_cjs_namespaceObject = require("../typed-css-modules/plugin.cjs");
|
|
42
42
|
const external_utils_cjs_namespaceObject = require("../utils.cjs");
|
|
43
|
-
const
|
|
43
|
+
const external_helpers_cjs_namespaceObject = require("./helpers.cjs");
|
|
44
44
|
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
|
-
const CSS_FILENAME = (0,
|
|
46
|
+
const CSS_FILENAME = (0, external_helpers_cjs_namespaceObject.getOutputFilename)({
|
|
47
47
|
type: 'css',
|
|
48
48
|
hash: null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.filenameHash
|
|
49
49
|
});
|
|
@@ -130,7 +130,8 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
130
130
|
return {
|
|
131
131
|
loader: external_node_path_default().resolve(__dirname, '../lightningcss/loader.cjs'),
|
|
132
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
|
|
133
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap,
|
|
134
|
+
targets: external_constants_cjs_namespaceObject.LIGHTNINGCSS_TARGET
|
|
134
135
|
})
|
|
135
136
|
};
|
|
136
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"experimentCss.d.ts","sourceRoot":"","sources":["../../src/bundler-config/experimentCss.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAazE,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,YAAY,GACb,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,YAAY,EAAE,YAAY,CAAA;CAC3B,GAAG,oBAAoB,CAiIvB"}
|
|
@@ -2,41 +2,41 @@ import __rslib_shim_module__ from 'module';
|
|
|
2
2
|
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
3
3
|
import { fileURLToPath as __webpack_fileURLToPath__ } from "node:url";
|
|
4
4
|
import { dirname as __webpack_dirname__ } from "node:path";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
5
|
+
import external_node_path_default from "node:path";
|
|
6
|
+
import { CSS_MODULES_LOCAL_IDENT_NAME, CSS_MODULES_REGEX, CSS_NAMED_EXPORT, EXPORT_LOCALS_CONVENTION, LIGHTNINGCSS_TARGET, THREAD_OPTIONS } from "../constants.js";
|
|
7
|
+
import { PluginTypedCssModules } from "../typed-css-modules/plugin.js";
|
|
8
|
+
import { getCompiledPkgPath, getUserDepPath, isDev, isFunction, isPlainObject, isRegExp, mergeConfig, setValueByPath } from "../utils.js";
|
|
9
|
+
import { getOutputFilename } from "./helpers.js";
|
|
10
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
|
-
const CSS_FILENAME =
|
|
13
|
+
const CSS_FILENAME = getOutputFilename({
|
|
14
14
|
type: 'css',
|
|
15
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;
|
|
19
|
-
|
|
19
|
+
setValueByPath(config, [
|
|
20
20
|
'experiments',
|
|
21
21
|
'css'
|
|
22
22
|
], true);
|
|
23
23
|
let modules = null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.modules;
|
|
24
|
-
if (!
|
|
24
|
+
if (!isPlainObject(modules) && false !== modules) modules = {};
|
|
25
25
|
if (false !== modules && false !== modules.auto) {
|
|
26
|
-
|
|
26
|
+
setValueByPath(config, [
|
|
27
27
|
'module',
|
|
28
28
|
'parser',
|
|
29
29
|
'css/module'
|
|
30
30
|
], {
|
|
31
|
-
namedExports:
|
|
31
|
+
namedExports: CSS_NAMED_EXPORT
|
|
32
32
|
});
|
|
33
|
-
|
|
33
|
+
setValueByPath(config, [
|
|
34
34
|
'module',
|
|
35
35
|
'generator',
|
|
36
36
|
'css/module'
|
|
37
37
|
], {
|
|
38
|
-
localIdentName: modules.localIdentName ||
|
|
39
|
-
exportsConvention:
|
|
38
|
+
localIdentName: modules.localIdentName || CSS_MODULES_LOCAL_IDENT_NAME,
|
|
39
|
+
exportsConvention: EXPORT_LOCALS_CONVENTION
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
const withCssModules = ({ use })=>{
|
|
@@ -45,10 +45,10 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
45
45
|
if (false === auto) return false;
|
|
46
46
|
return {
|
|
47
47
|
test: (resourcePath)=>{
|
|
48
|
-
if (resourcePath.includes('node_modules')) return
|
|
49
|
-
if (
|
|
50
|
-
if (
|
|
51
|
-
return
|
|
48
|
+
if (resourcePath.includes('node_modules')) return CSS_MODULES_REGEX.test(resourcePath);
|
|
49
|
+
if (isRegExp(auto)) return auto.test(resourcePath);
|
|
50
|
+
if (isFunction(auto)) return auto(resourcePath);
|
|
51
|
+
return CSS_MODULES_REGEX.test(resourcePath);
|
|
52
52
|
},
|
|
53
53
|
use,
|
|
54
54
|
type: 'css/module'
|
|
@@ -58,18 +58,18 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
58
58
|
var _unpackConfig_build;
|
|
59
59
|
return (null == (_unpackConfig_build = unpackConfig.build) ? void 0 : _unpackConfig_build.parallel) && {
|
|
60
60
|
loader: require.resolve('thread-loader'),
|
|
61
|
-
options:
|
|
61
|
+
options: THREAD_OPTIONS
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
const getLessLoader = ()=>{
|
|
65
65
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
66
66
|
return {
|
|
67
|
-
loader:
|
|
67
|
+
loader: getCompiledPkgPath('less-loader'),
|
|
68
68
|
options: {
|
|
69
|
-
lessOptions:
|
|
69
|
+
lessOptions: mergeConfig({
|
|
70
70
|
javascriptEnabled: true
|
|
71
71
|
}, (null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.less) || {}),
|
|
72
|
-
implementation:
|
|
72
|
+
implementation: getUserDepPath(unpackConfig.root, 'less'),
|
|
73
73
|
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
74
74
|
}
|
|
75
75
|
};
|
|
@@ -95,16 +95,17 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
95
95
|
const getLightningcssLoader = ()=>{
|
|
96
96
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
97
97
|
return {
|
|
98
|
-
loader:
|
|
99
|
-
options:
|
|
100
|
-
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
98
|
+
loader: external_node_path_default.resolve(experimentCss_dirname, '../lightningcss/loader.cjs'),
|
|
99
|
+
options: mergeConfig((null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.lightningcss) || {}, {
|
|
100
|
+
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap,
|
|
101
|
+
targets: LIGHTNINGCSS_TARGET
|
|
101
102
|
})
|
|
102
103
|
};
|
|
103
104
|
};
|
|
104
105
|
const getPostcssLoader = ()=>{
|
|
105
106
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
106
107
|
return {
|
|
107
|
-
loader:
|
|
108
|
+
loader: getCompiledPkgPath('postcss-loader'),
|
|
108
109
|
options: {
|
|
109
110
|
postcssOptions: null == (_unpackConfig_css = unpackConfig.css) ? void 0 : _unpackConfig_css.postcss,
|
|
110
111
|
sourceMap: null == (_unpackConfig_css1 = unpackConfig.css) ? void 0 : _unpackConfig_css1.sourceMap
|
|
@@ -134,10 +135,10 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
134
135
|
const getSassLoader = ()=>{
|
|
135
136
|
var _unpackConfig_css, _unpackConfig_css1;
|
|
136
137
|
return {
|
|
137
|
-
loader:
|
|
138
|
+
loader: getCompiledPkgPath('sass-loader'),
|
|
138
139
|
options: {
|
|
139
140
|
api: 'modern-compiler',
|
|
140
|
-
implementation:
|
|
141
|
+
implementation: getUserDepPath(unpackConfig.root, [
|
|
141
142
|
'sass-embedded',
|
|
142
143
|
'sass'
|
|
143
144
|
]),
|
|
@@ -162,7 +163,7 @@ function applyExperimentCssConfig({ config, unpackConfig }) {
|
|
|
162
163
|
}
|
|
163
164
|
].filter(Boolean)
|
|
164
165
|
});
|
|
165
|
-
|
|
166
|
+
isDev() && config.plugins.push(new PluginTypedCssModules({
|
|
166
167
|
modules
|
|
167
168
|
}));
|
|
168
169
|
return config;
|
|
@@ -33,8 +33,8 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
getEntry: ()=>getEntry,
|
|
37
|
+
getOutputFilename: ()=>getOutputFilename
|
|
38
38
|
});
|
|
39
39
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
40
40
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/bundler-config/helpers.ts"],"names":[],"mappings":"AAOA,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBjF;AAED,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,IAAI,GAAG,KAAK,CAAA;IAClB,IAAI,EAAE,OAAO,CAAA;CACd,CAAA;AACD,eAAO,MAAM,iBAAiB,mBAAoB,cAAc,WAqB/D,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import __rslib_shim_module__ from 'module';
|
|
2
|
+
/*#__PURE__*/ import.meta.url;
|
|
3
|
+
import external_node_fs_default from "node:fs";
|
|
4
|
+
import external_node_path_default from "node:path";
|
|
5
|
+
import { isDev } from "../utils.js";
|
|
6
|
+
import { glob } from "tinyglobby";
|
|
7
|
+
import { DEV_DEFAULT_FILENAME, PROD_DEFAULT_FILENAME } from "../constants.js";
|
|
8
|
+
import { logger } from "../logger.js";
|
|
9
|
+
async function getEntry(root, customEntry) {
|
|
10
|
+
let entry;
|
|
11
|
+
if (customEntry) entry = external_node_path_default.resolve(root, customEntry);
|
|
12
|
+
else {
|
|
13
|
+
const files = await glob('(index|Index).{js,ts,jsx,tsx}', {
|
|
14
|
+
cwd: external_node_path_default.join(root, 'src'),
|
|
15
|
+
absolute: true
|
|
16
|
+
});
|
|
17
|
+
entry = files[0];
|
|
18
|
+
}
|
|
19
|
+
if (!external_node_fs_default.existsSync(entry)) {
|
|
20
|
+
logger.error(new Error('could not find entry file'));
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
return entry;
|
|
24
|
+
}
|
|
25
|
+
const getOutputFilename = ({ type, hash })=>{
|
|
26
|
+
const mode = isDev() || false === hash ? 'development' : 'production';
|
|
27
|
+
const handles = {
|
|
28
|
+
js: {
|
|
29
|
+
development: ()=>DEV_DEFAULT_FILENAME.js,
|
|
30
|
+
production: ()=>PROD_DEFAULT_FILENAME.js
|
|
31
|
+
},
|
|
32
|
+
css: {
|
|
33
|
+
development: ()=>DEV_DEFAULT_FILENAME.css,
|
|
34
|
+
production: ()=>PROD_DEFAULT_FILENAME.css
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return handles[type][mode]();
|
|
38
|
+
};
|
|
39
|
+
export { getEntry, getOutputFilename };
|