weapp-tailwindcss 4.8.7 → 4.8.8
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/dist/chunk-2E724WCE.js +138 -0
- package/dist/{chunk-7BASRP3P.js → chunk-2KZ4VTIA.js} +18 -116
- package/dist/{chunk-ZB6MFKXJ.mjs → chunk-3IP5JCFZ.mjs} +1 -1
- package/dist/{chunk-ZSTF2AEN.js → chunk-3URI7W6X.js} +11 -1
- package/dist/{chunk-3XGTIDA6.mjs → chunk-6TO3GT5S.mjs} +476 -190
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/{chunk-WUJAJ42W.js → chunk-E7PFK6BW.js} +120 -47
- package/dist/{chunk-YQQ3HDQD.mjs → chunk-FB3ASCHC.mjs} +2 -2
- package/dist/{chunk-KRRIFURM.mjs → chunk-IH3HQU7U.mjs} +191 -127
- package/dist/{chunk-5F64FE7K.js → chunk-L5ER4544.js} +5 -5
- package/dist/{chunk-GORSBZA2.js → chunk-M4NERJO7.js} +1 -1
- package/dist/{chunk-JYHBNTYH.mjs → chunk-M5UEOYBI.mjs} +2 -2
- package/dist/{chunk-ESYZLHZI.js → chunk-P3AQCOOM.js} +471 -185
- package/dist/chunk-PVJDRL3I.mjs +138 -0
- package/dist/{chunk-DKPIYG24.mjs → chunk-QF65JGNW.mjs} +11 -1
- package/dist/{chunk-BMUQ4OAB.mjs → chunk-RUXC4E2M.mjs} +7 -105
- package/dist/{chunk-JW7P34IH.mjs → chunk-RYGPCUUT.mjs} +65 -58
- package/dist/{chunk-MIC6E7DV.mjs → chunk-UTCO4JMJ.mjs} +102 -29
- package/dist/{chunk-VONLQCG7.js → chunk-WF4UE272.js} +211 -147
- package/dist/{chunk-322IEI2K.js → chunk-XHR5K5ZT.js} +57 -51
- package/dist/{chunk-U4WEDSBF.js → chunk-Y5XG47XY.js} +7 -7
- package/dist/cli.js +39 -32
- package/dist/cli.mjs +12 -5
- package/dist/core.js +11 -11
- package/dist/core.mjs +5 -5
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/css-macro.js +1 -1
- package/dist/css-macro.mjs +1 -1
- package/dist/defaults.js +3 -3
- package/dist/defaults.mjs +2 -2
- package/dist/gulp.js +7 -7
- package/dist/gulp.mjs +6 -6
- package/dist/index.js +11 -11
- package/dist/index.mjs +10 -10
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss-html-transform.mjs +1 -1
- package/dist/presets.js +4 -4
- package/dist/presets.mjs +2 -2
- package/dist/reset.js +1 -1
- package/dist/reset.mjs +1 -1
- package/dist/types.d.mts +7 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -1
- package/dist/vite.js +8 -8
- package/dist/vite.mjs +7 -7
- package/dist/{weapp-tw-runtime-loader.js → weapp-tw-css-import-rewrite-loader.js} +49 -18
- package/dist/weapp-tw-runtime-classset-loader.js +23 -0
- package/dist/webpack.d.mts +0 -1
- package/dist/webpack.d.ts +0 -1
- package/dist/webpack.js +9 -9
- package/dist/webpack.mjs +8 -8
- package/dist/webpack4.d.mts +0 -1
- package/dist/webpack4.d.ts +0 -1
- package/dist/webpack4.js +124 -48
- package/dist/webpack4.mjs +106 -30
- package/package.json +3 -3
- package/dist/chunk-PFUB74BL.mjs +0 -61
- package/dist/chunk-WYXD5IW7.js +0 -61
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _chunkWYXD5IW7js = require('./chunk-WYXD5IW7.js');
|
|
5
4
|
|
|
6
5
|
|
|
7
6
|
|
|
7
|
+
var _chunk2E724WCEjs = require('./chunk-2E724WCE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
var _chunkXHR5K5ZTjs = require('./chunk-XHR5K5ZT.js');
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
|
|
14
17
|
|
|
15
18
|
|
|
16
|
-
var
|
|
19
|
+
var _chunkL5ER4544js = require('./chunk-L5ER4544.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
17
24
|
|
|
18
25
|
|
|
26
|
+
var _chunk2KZ4VTIAjs = require('./chunk-2KZ4VTIA.js');
|
|
19
27
|
|
|
20
28
|
|
|
21
29
|
|
|
22
30
|
|
|
23
|
-
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var _chunkP3AQCOOMjs = require('./chunk-P3AQCOOM.js');
|
|
24
34
|
|
|
25
35
|
|
|
26
36
|
var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
|
|
@@ -29,15 +39,15 @@ var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
|
|
|
29
39
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
30
40
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
31
41
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
32
|
-
var debug =
|
|
33
|
-
var weappTailwindcssPackageDir =
|
|
42
|
+
var debug = _chunk2KZ4VTIAjs.createDebug.call(void 0, );
|
|
43
|
+
var weappTailwindcssPackageDir = _chunkXHR5K5ZTjs.resolvePackageDir.call(void 0, "weapp-tailwindcss");
|
|
34
44
|
var UnifiedWebpackPluginV5 = class {
|
|
35
45
|
constructor(options = {}) {
|
|
36
|
-
this.options =
|
|
37
|
-
this.userSpecifiedRewriteCssImports = Object.prototype.hasOwnProperty.call(options, "rewriteCssImports");
|
|
46
|
+
this.options = _chunk2KZ4VTIAjs.getCompilerContext.call(void 0, options);
|
|
38
47
|
this.appType = this.options.appType;
|
|
39
48
|
}
|
|
40
49
|
apply(compiler) {
|
|
50
|
+
compiler.options = compiler.options || {};
|
|
41
51
|
const {
|
|
42
52
|
mainCssChunkMatcher,
|
|
43
53
|
disabled,
|
|
@@ -49,6 +59,7 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
49
59
|
templateHandler,
|
|
50
60
|
jsHandler,
|
|
51
61
|
runtimeLoaderPath,
|
|
62
|
+
runtimeCssImportRewriteLoaderPath,
|
|
52
63
|
cache,
|
|
53
64
|
twPatcher: initialTwPatcher,
|
|
54
65
|
refreshTailwindcssPatcher
|
|
@@ -56,14 +67,18 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
56
67
|
if (disabled) {
|
|
57
68
|
return;
|
|
58
69
|
}
|
|
59
|
-
const
|
|
70
|
+
const isTailwindcssV4 = (_nullishCoalesce(initialTwPatcher.majorVersion, () => ( 0))) >= 4;
|
|
71
|
+
const shouldRewriteCssImports = isTailwindcssV4 && this.options.rewriteCssImports !== false;
|
|
72
|
+
const isMpxApp = _chunkP3AQCOOMjs.isMpx.call(void 0, this.appType);
|
|
60
73
|
if (shouldRewriteCssImports) {
|
|
61
|
-
|
|
74
|
+
_chunk2E724WCEjs.applyTailwindcssCssImportRewrite.call(void 0, compiler, {
|
|
62
75
|
pkgDir: weappTailwindcssPackageDir,
|
|
63
|
-
enabled: true
|
|
76
|
+
enabled: true,
|
|
77
|
+
appType: this.appType
|
|
64
78
|
});
|
|
79
|
+
_chunkP3AQCOOMjs.setupMpxTailwindcssRedirect.call(void 0, weappTailwindcssPackageDir, isMpxApp);
|
|
65
80
|
}
|
|
66
|
-
const patchRecorderState =
|
|
81
|
+
const patchRecorderState = _chunkL5ER4544js.setupPatchRecorder.call(void 0, initialTwPatcher, this.options.tailwindcssBasedir, {
|
|
67
82
|
source: "runtime",
|
|
68
83
|
cwd: _nullishCoalesce(this.options.tailwindcssBasedir, () => ( _process2.default.cwd()))
|
|
69
84
|
});
|
|
@@ -74,52 +89,110 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
74
89
|
onPatchCompleted: patchRecorderState.onPatchCompleted
|
|
75
90
|
};
|
|
76
91
|
const refreshRuntimeState = async (force) => {
|
|
77
|
-
await
|
|
92
|
+
await _chunk2KZ4VTIAjs.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
|
|
78
93
|
};
|
|
79
94
|
const { Compilation, sources, NormalModule } = compiler.webpack;
|
|
80
95
|
const { ConcatSource } = sources;
|
|
81
96
|
async function getClassSetInLoader() {
|
|
82
97
|
await refreshRuntimeState(true);
|
|
83
98
|
await runtimeState.patchPromise;
|
|
84
|
-
await
|
|
99
|
+
await _chunk2KZ4VTIAjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
85
100
|
}
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
const
|
|
101
|
+
const runtimeClassSetLoader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-classset-loader.js")));
|
|
102
|
+
const runtimeCssImportRewriteLoader = shouldRewriteCssImports ? _nullishCoalesce(runtimeCssImportRewriteLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-css-import-rewrite-loader.js"))) : void 0;
|
|
103
|
+
const runtimeClassSetLoaderExists = _fs2.default.existsSync(runtimeClassSetLoader);
|
|
104
|
+
const runtimeCssImportRewriteLoaderExists = runtimeCssImportRewriteLoader ? _fs2.default.existsSync(runtimeCssImportRewriteLoader) : false;
|
|
89
105
|
const runtimeLoaderRewriteOptions = shouldRewriteCssImports ? {
|
|
90
|
-
pkgDir: weappTailwindcssPackageDir
|
|
106
|
+
pkgDir: weappTailwindcssPackageDir,
|
|
107
|
+
appType: this.appType
|
|
91
108
|
} : void 0;
|
|
92
|
-
const
|
|
93
|
-
getClassSet: getClassSetInLoader
|
|
94
|
-
rewriteCssImports: runtimeLoaderRewriteOptions
|
|
109
|
+
const classSetLoaderOptions = {
|
|
110
|
+
getClassSet: getClassSetInLoader
|
|
95
111
|
};
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
112
|
+
const { findRewriteAnchor, findClassSetAnchor } = _chunk2E724WCEjs.createLoaderAnchorFinders.call(void 0, this.appType);
|
|
113
|
+
const cssImportRewriteLoaderOptions = runtimeLoaderRewriteOptions ? {
|
|
114
|
+
rewriteCssImports: runtimeLoaderRewriteOptions
|
|
115
|
+
} : void 0;
|
|
116
|
+
onLoad();
|
|
117
|
+
if (shouldRewriteCssImports && isMpxApp) {
|
|
118
|
+
_chunkP3AQCOOMjs.ensureMpxTailwindcssAliases.call(void 0, compiler, weappTailwindcssPackageDir);
|
|
119
|
+
}
|
|
120
|
+
if (runtimeCssImportRewriteLoader && shouldRewriteCssImports && cssImportRewriteLoaderOptions && isMpxApp) {
|
|
121
|
+
_chunkP3AQCOOMjs.injectMpxCssRewritePreRules.call(void 0, compiler, runtimeCssImportRewriteLoader, cssImportRewriteLoaderOptions);
|
|
122
|
+
}
|
|
123
|
+
const createRuntimeClassSetLoaderEntry = () => ({
|
|
124
|
+
loader: runtimeClassSetLoader,
|
|
125
|
+
options: classSetLoaderOptions,
|
|
99
126
|
ident: null,
|
|
100
127
|
type: null
|
|
101
128
|
});
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
129
|
+
const createCssImportRewriteLoaderEntry = () => {
|
|
130
|
+
if (!runtimeCssImportRewriteLoader) {
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
loader: runtimeCssImportRewriteLoader,
|
|
135
|
+
options: cssImportRewriteLoaderOptions,
|
|
136
|
+
ident: null,
|
|
137
|
+
type: null
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
compiler.hooks.compilation.tap(_chunk2KZ4VTIAjs.pluginName, (compilation) => {
|
|
141
|
+
NormalModule.getCompilationHooks(compilation).loader.tap(_chunk2KZ4VTIAjs.pluginName, (_loaderContext, module) => {
|
|
142
|
+
const hasRuntimeLoader = runtimeClassSetLoaderExists || runtimeCssImportRewriteLoaderExists;
|
|
143
|
+
if (!hasRuntimeLoader) {
|
|
105
144
|
return;
|
|
106
145
|
}
|
|
146
|
+
_chunkP3AQCOOMjs.patchMpxLoaderResolve.call(void 0, _loaderContext, weappTailwindcssPackageDir, shouldRewriteCssImports && isMpxApp);
|
|
107
147
|
const loaderEntries = module.loaders || [];
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
if (
|
|
148
|
+
let rewriteAnchorIdx = findRewriteAnchor(loaderEntries);
|
|
149
|
+
const classSetAnchorIdx = findClassSetAnchor(loaderEntries);
|
|
150
|
+
const isCssModule = _chunk2E724WCEjs.isCssLikeModuleResource.call(void 0, module.resource, this.options.cssMatcher, this.appType);
|
|
151
|
+
if (_process2.default.env.WEAPP_TW_LOADER_DEBUG && isCssModule) {
|
|
152
|
+
debug("loader hook css module: %s loaders=%o anchors=%o", module.resource, loaderEntries.map((x) => x.loader), { rewriteAnchorIdx, classSetAnchorIdx });
|
|
153
|
+
}
|
|
154
|
+
if (_process2.default.env.WEAPP_TW_LOADER_DEBUG && typeof module.resource === "string" && module.resource.includes("app.css")) {
|
|
155
|
+
debug("app.css module loaders=%o anchors=%o", loaderEntries.map((x) => x.loader), { rewriteAnchorIdx, classSetAnchorIdx });
|
|
156
|
+
} else if (_process2.default.env.WEAPP_TW_LOADER_DEBUG && typeof module.resource === "string" && module.resource.endsWith(".css")) {
|
|
157
|
+
debug("css module seen: %s loaders=%o anchors=%o", module.resource, loaderEntries.map((x) => x.loader), { rewriteAnchorIdx, classSetAnchorIdx });
|
|
158
|
+
}
|
|
159
|
+
if (rewriteAnchorIdx === -1 && classSetAnchorIdx === -1 && !isCssModule) {
|
|
115
160
|
return;
|
|
116
161
|
}
|
|
117
|
-
const
|
|
118
|
-
|
|
162
|
+
const anchorlessInsert = (entry, position) => {
|
|
163
|
+
if (position === "after") {
|
|
164
|
+
loaderEntries.push(entry);
|
|
165
|
+
} else {
|
|
166
|
+
loaderEntries.unshift(entry);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
if (cssImportRewriteLoaderOptions && runtimeCssImportRewriteLoaderExists && runtimeCssImportRewriteLoader) {
|
|
170
|
+
const existingIndex = loaderEntries.findIndex((entry) => _optionalChain([entry, 'access', _ => _.loader, 'optionalAccess', _2 => _2.includes, 'optionalCall', _3 => _3(runtimeCssImportRewriteLoader)]));
|
|
171
|
+
const rewriteLoaderEntry = existingIndex !== -1 ? loaderEntries.splice(existingIndex, 1)[0] : createCssImportRewriteLoaderEntry();
|
|
172
|
+
if (rewriteLoaderEntry) {
|
|
173
|
+
const anchorIndex = findRewriteAnchor(loaderEntries);
|
|
174
|
+
if (anchorIndex === -1) {
|
|
175
|
+
anchorlessInsert(rewriteLoaderEntry, "after");
|
|
176
|
+
} else {
|
|
177
|
+
loaderEntries.splice(anchorIndex + 1, 0, rewriteLoaderEntry);
|
|
178
|
+
}
|
|
179
|
+
rewriteAnchorIdx = findRewriteAnchor(loaderEntries);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
if (runtimeClassSetLoaderExists && !_chunk2E724WCEjs.hasLoaderEntry.call(void 0, loaderEntries, runtimeClassSetLoader)) {
|
|
183
|
+
const classSetLoaderEntry = createRuntimeClassSetLoaderEntry();
|
|
184
|
+
const anchorIndex = findClassSetAnchor(loaderEntries);
|
|
185
|
+
if (anchorIndex === -1) {
|
|
186
|
+
anchorlessInsert(classSetLoaderEntry, "before");
|
|
187
|
+
} else {
|
|
188
|
+
const insertIndex = anchorIndex === -1 ? rewriteAnchorIdx : anchorIndex;
|
|
189
|
+
loaderEntries.splice(insertIndex, 0, classSetLoaderEntry);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
119
192
|
});
|
|
120
193
|
compilation.hooks.processAssets.tapPromise(
|
|
121
194
|
{
|
|
122
|
-
name:
|
|
195
|
+
name: _chunk2KZ4VTIAjs.pluginName,
|
|
123
196
|
stage: Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE
|
|
124
197
|
},
|
|
125
198
|
async (assets) => {
|
|
@@ -132,18 +205,18 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
132
205
|
}
|
|
133
206
|
}
|
|
134
207
|
const entries = Object.entries(assets);
|
|
135
|
-
const compilerOutputPath = _nullishCoalesce(_optionalChain([compilation, 'access',
|
|
136
|
-
const outputDir = compilerOutputPath ? _path2.default.resolve(compilerOutputPath) : _nullishCoalesce(_optionalChain([compilation, 'access',
|
|
208
|
+
const compilerOutputPath = _nullishCoalesce(_optionalChain([compilation, 'access', _4 => _4.compiler, 'optionalAccess', _5 => _5.outputPath]), () => ( compiler.outputPath));
|
|
209
|
+
const outputDir = compilerOutputPath ? _path2.default.resolve(compilerOutputPath) : _nullishCoalesce(_optionalChain([compilation, 'access', _6 => _6.outputOptions, 'optionalAccess', _7 => _7.path]), () => ( _process2.default.cwd()));
|
|
137
210
|
const jsAssets = /* @__PURE__ */ new Map();
|
|
138
211
|
for (const [file] of entries) {
|
|
139
212
|
if (this.options.jsMatcher(file) || this.options.wxsMatcher(file)) {
|
|
140
|
-
const absolute =
|
|
213
|
+
const absolute = _chunkXHR5K5ZTjs.toAbsoluteOutputPath.call(void 0, file, outputDir);
|
|
141
214
|
jsAssets.set(absolute, file);
|
|
142
215
|
}
|
|
143
216
|
}
|
|
144
217
|
const moduleGraphOptions = {
|
|
145
218
|
resolve(specifier, importer) {
|
|
146
|
-
return
|
|
219
|
+
return _chunkXHR5K5ZTjs.resolveOutputSpecifier.call(void 0, specifier, importer, outputDir, (candidate) => jsAssets.has(candidate));
|
|
147
220
|
},
|
|
148
221
|
load: (id) => {
|
|
149
222
|
const assetName = jsAssets.get(id);
|
|
@@ -188,7 +261,7 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
188
261
|
const groupedEntries = _chunkUW3WHSZ5js.getGroupedEntries.call(void 0, entries, this.options);
|
|
189
262
|
await refreshRuntimeState(true);
|
|
190
263
|
await runtimeState.patchPromise;
|
|
191
|
-
const runtimeSet = await
|
|
264
|
+
const runtimeSet = await _chunk2KZ4VTIAjs.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
192
265
|
debug("get runtimeSet, class count: %d", runtimeSet.size);
|
|
193
266
|
const tasks = [];
|
|
194
267
|
if (Array.isArray(groupedEntries.html)) {
|
|
@@ -225,12 +298,12 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
225
298
|
const jsTaskFactories = [];
|
|
226
299
|
if (Array.isArray(groupedEntries.js)) {
|
|
227
300
|
for (const [file] of groupedEntries.js) {
|
|
228
|
-
const cacheKey =
|
|
301
|
+
const cacheKey = _chunk2E724WCEjs.getCacheKey.call(void 0, file);
|
|
229
302
|
const asset = compilation.getAsset(file);
|
|
230
303
|
if (!asset) {
|
|
231
304
|
continue;
|
|
232
305
|
}
|
|
233
|
-
const absoluteFile =
|
|
306
|
+
const absoluteFile = _chunkXHR5K5ZTjs.toAbsoluteOutputPath.call(void 0, file, outputDir);
|
|
234
307
|
const initialSource = asset.source.source();
|
|
235
308
|
const initialRawSource = typeof initialSource === "string" ? initialSource : initialSource.toString();
|
|
236
309
|
jsTaskFactories.push(async () => {
|
|
@@ -246,8 +319,8 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
246
319
|
},
|
|
247
320
|
transform: async () => {
|
|
248
321
|
const currentAsset = compilation.getAsset(file);
|
|
249
|
-
const currentSourceValue = _optionalChain([currentAsset, 'optionalAccess',
|
|
250
|
-
const currentSource = typeof currentSourceValue === "string" ? currentSourceValue : _nullishCoalesce(_optionalChain([currentSourceValue, 'optionalAccess',
|
|
322
|
+
const currentSourceValue = _optionalChain([currentAsset, 'optionalAccess', _8 => _8.source, 'access', _9 => _9.source, 'call', _10 => _10()]);
|
|
323
|
+
const currentSource = typeof currentSourceValue === "string" ? currentSourceValue : _nullishCoalesce(_optionalChain([currentSourceValue, 'optionalAccess', _11 => _11.toString, 'call', _12 => _12()]), () => ( ""));
|
|
251
324
|
const { code, linked } = await jsHandler(currentSource, runtimeSet, {
|
|
252
325
|
filename: absoluteFile,
|
|
253
326
|
moduleGraph: moduleGraphOptions,
|
|
@@ -305,7 +378,7 @@ var UnifiedWebpackPluginV5 = class {
|
|
|
305
378
|
);
|
|
306
379
|
}
|
|
307
380
|
}
|
|
308
|
-
|
|
381
|
+
_chunkXHR5K5ZTjs.pushConcurrentTaskFactories.call(void 0, tasks, jsTaskFactories);
|
|
309
382
|
await Promise.all(tasks);
|
|
310
383
|
debug("end");
|
|
311
384
|
onEnd();
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-RRHPTTCP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
setupPatchRecorder
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M5UEOYBI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
collectRuntimeClassSet,
|
|
9
9
|
createDebug,
|
|
10
10
|
getCompilerContext,
|
|
11
11
|
refreshTailwindRuntimeState
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RUXC4E2M.mjs";
|
|
13
13
|
|
|
14
14
|
// src/bundlers/gulp/index.ts
|
|
15
15
|
import { Buffer } from "buffer";
|