weapp-tailwindcss 4.7.9 → 4.7.10-alpha.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/dist/{chunk-JBZ63WDH.mjs → chunk-2WJGB2LE.mjs} +1 -1
- package/dist/{chunk-RIMKL2AV.js → chunk-6MBTOUPD.js} +10 -10
- package/dist/{chunk-HPVYHFXX.js → chunk-AEIEPXO3.js} +211 -37
- package/dist/{chunk-SMEWY6FJ.js → chunk-GRO26PCL.js} +6 -6
- package/dist/{chunk-TPBIR7NL.mjs → chunk-J7OY4W53.mjs} +181 -7
- package/dist/{chunk-DTBKYR3J.js → chunk-LRD5B5J7.js} +11 -11
- package/dist/{chunk-BLSNFAO7.mjs → chunk-QB67X26Y.mjs} +1 -1
- package/dist/{chunk-WSMHVHT4.mjs → chunk-YEFXGOXH.mjs} +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.mjs +1 -1
- package/dist/core.js +7 -7
- package/dist/core.mjs +1 -1
- package/dist/gulp.js +3 -3
- package/dist/gulp.mjs +2 -2
- package/dist/index.js +5 -5
- package/dist/index.mjs +4 -4
- package/dist/vite.js +3 -3
- package/dist/vite.mjs +2 -2
- package/dist/webpack.js +3 -3
- package/dist/webpack.mjs +2 -2
- package/dist/webpack4.js +10 -10
- package/dist/webpack4.mjs +1 -1
- package/package.json +2 -2
package/dist/webpack4.js
CHANGED
|
@@ -16,7 +16,7 @@ var _chunkLTJQUORKjs = require('./chunk-LTJQUORK.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkAEIEPXO3js = require('./chunk-AEIEPXO3.js');
|
|
20
20
|
require('./chunk-KMCQEHJM.js');
|
|
21
21
|
require('./chunk-SMYOFNHJ.js');
|
|
22
22
|
|
|
@@ -29,10 +29,10 @@ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
|
29
29
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
30
30
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
31
31
|
var _webpacksources = require('webpack-sources');
|
|
32
|
-
var debug =
|
|
32
|
+
var debug = _chunkAEIEPXO3js.createDebug.call(void 0, );
|
|
33
33
|
var UnifiedWebpackPluginV4 = class {
|
|
34
34
|
constructor(options = {}) {
|
|
35
|
-
this.options =
|
|
35
|
+
this.options = _chunkAEIEPXO3js.getCompilerContext.call(void 0, options);
|
|
36
36
|
this.appType = this.options.appType;
|
|
37
37
|
}
|
|
38
38
|
apply(compiler) {
|
|
@@ -56,16 +56,16 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
56
56
|
}
|
|
57
57
|
const runtimeState = {
|
|
58
58
|
twPatcher: initialTwPatcher,
|
|
59
|
-
patchPromise:
|
|
59
|
+
patchPromise: _chunkAEIEPXO3js.createTailwindPatchPromise.call(void 0, initialTwPatcher),
|
|
60
60
|
refreshTailwindcssPatcher
|
|
61
61
|
};
|
|
62
62
|
const refreshRuntimeState = async (force) => {
|
|
63
|
-
await
|
|
63
|
+
await _chunkAEIEPXO3js.refreshTailwindRuntimeState.call(void 0, runtimeState, force);
|
|
64
64
|
};
|
|
65
65
|
async function getClassSetInLoader() {
|
|
66
66
|
await refreshRuntimeState(true);
|
|
67
67
|
await runtimeState.patchPromise;
|
|
68
|
-
await
|
|
68
|
+
await _chunkAEIEPXO3js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
69
69
|
}
|
|
70
70
|
onLoad();
|
|
71
71
|
const loader = _nullishCoalesce(runtimeLoaderPath, () => ( _path2.default.resolve(__dirname, "./weapp-tw-runtime-loader.js")));
|
|
@@ -78,8 +78,8 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
78
78
|
ident: null,
|
|
79
79
|
type: null
|
|
80
80
|
};
|
|
81
|
-
compiler.hooks.compilation.tap(
|
|
82
|
-
compilation.hooks.normalModuleLoader.tap(
|
|
81
|
+
compiler.hooks.compilation.tap(_chunkAEIEPXO3js.pluginName, (compilation) => {
|
|
82
|
+
compilation.hooks.normalModuleLoader.tap(_chunkAEIEPXO3js.pluginName, (_loaderContext, module) => {
|
|
83
83
|
if (isExisted) {
|
|
84
84
|
const idx = module.loaders.findIndex((x) => x.loader.includes("postcss-loader"));
|
|
85
85
|
if (idx > -1) {
|
|
@@ -88,7 +88,7 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
|
-
compiler.hooks.emit.tapPromise(
|
|
91
|
+
compiler.hooks.emit.tapPromise(_chunkAEIEPXO3js.pluginName, async (compilation) => {
|
|
92
92
|
await runtimeState.patchPromise;
|
|
93
93
|
onStart();
|
|
94
94
|
debug("start");
|
|
@@ -154,7 +154,7 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
154
154
|
const groupedEntries = _chunkUW3WHSZ5js.getGroupedEntries.call(void 0, entries, this.options);
|
|
155
155
|
await refreshRuntimeState(true);
|
|
156
156
|
await runtimeState.patchPromise;
|
|
157
|
-
const runtimeSet = await
|
|
157
|
+
const runtimeSet = await _chunkAEIEPXO3js.collectRuntimeClassSet.call(void 0, runtimeState.twPatcher, { force: true, skipRefresh: true });
|
|
158
158
|
debug("get runtimeSet, class count: %d", runtimeSet.size);
|
|
159
159
|
const tasks = [];
|
|
160
160
|
if (Array.isArray(groupedEntries.html)) {
|
package/dist/webpack4.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.10-alpha.0",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
"semver": "~7.7.3",
|
|
178
178
|
"tailwindcss-patch": "^8.2.4",
|
|
179
179
|
"webpack-sources": "3.3.3",
|
|
180
|
-
"@weapp-tailwindcss/postcss": "2.0.3",
|
|
181
180
|
"@weapp-tailwindcss/shared": "1.1.0",
|
|
181
|
+
"@weapp-tailwindcss/postcss": "2.0.3",
|
|
182
182
|
"@weapp-tailwindcss/logger": "1.1.0"
|
|
183
183
|
},
|
|
184
184
|
"scripts": {
|