weapp-tailwindcss 3.3.7 → 3.4.0-alpha.1

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.
Files changed (138) hide show
  1. package/dist/chunk-23B34GUU.js +126 -0
  2. package/dist/chunk-33GCHXV2.js +953 -0
  3. package/dist/chunk-556KTBON.js +31 -0
  4. package/dist/chunk-6Z776ZWK.js +43 -0
  5. package/dist/chunk-75EWCRQW.mjs +13 -0
  6. package/dist/chunk-76AXDOI5.js +173 -0
  7. package/dist/chunk-77FRX3XG.js +30 -0
  8. package/dist/chunk-AB467PG7.mjs +43 -0
  9. package/dist/chunk-D7TNNBED.js +95 -0
  10. package/dist/chunk-E7XGHGC7.mjs +62 -0
  11. package/dist/chunk-F7IR3ASC.mjs +152 -0
  12. package/dist/chunk-GUE4UCRJ.mjs +126 -0
  13. package/dist/chunk-H62TECOL.js +216 -0
  14. package/dist/chunk-HBQASQKY.js +13 -0
  15. package/dist/chunk-IOYI6MSW.mjs +533 -0
  16. package/dist/chunk-JMMU4NZL.mjs +173 -0
  17. package/dist/chunk-KR2M4GD3.mjs +953 -0
  18. package/dist/chunk-LYLCSEZ7.js +152 -0
  19. package/dist/chunk-NVFWRLOI.mjs +27 -0
  20. package/dist/chunk-ODCGCGWM.js +533 -0
  21. package/dist/chunk-ORMKM6ZA.mjs +30 -0
  22. package/dist/chunk-S2GPPMOJ.js +27 -0
  23. package/dist/chunk-SRLZU2YE.mjs +95 -0
  24. package/dist/chunk-U2UGOG3R.js +62 -0
  25. package/dist/chunk-VECXHWWG.mjs +31 -0
  26. package/dist/chunk-Z3EH2XYL.mjs +216 -0
  27. package/dist/cli.d.mts +2 -0
  28. package/dist/cli.d.ts +2 -1
  29. package/dist/cli.js +32 -51
  30. package/dist/cli.mjs +34 -46
  31. package/dist/core.d.mts +22 -0
  32. package/dist/core.d.ts +16 -2
  33. package/dist/core.js +43 -63
  34. package/dist/core.mjs +46 -62
  35. package/dist/css-macro/index.d.mts +18 -0
  36. package/dist/css-macro/index.d.ts +7 -4
  37. package/dist/css-macro/index.js +37 -34
  38. package/dist/css-macro/index.mjs +35 -28
  39. package/dist/css-macro/postcss.d.mts +7 -0
  40. package/dist/css-macro/postcss.d.ts +5 -3
  41. package/dist/css-macro/postcss.js +54 -45
  42. package/dist/css-macro/postcss.mjs +54 -45
  43. package/dist/defaults.d.mts +16 -0
  44. package/dist/defaults.d.ts +16 -2
  45. package/dist/defaults.js +6 -9
  46. package/dist/defaults.mjs +9 -4
  47. package/dist/gulp.d.mts +26 -0
  48. package/dist/gulp.d.ts +26 -1
  49. package/dist/gulp.js +12 -37
  50. package/dist/gulp.mjs +15 -32
  51. package/dist/index.d.mts +17 -0
  52. package/dist/index.d.ts +17 -4
  53. package/dist/index.js +23 -44
  54. package/dist/index.mjs +23 -34
  55. package/dist/postcss.d.mts +23 -0
  56. package/dist/postcss.d.ts +23 -1
  57. package/dist/postcss.js +10 -24
  58. package/dist/postcss.mjs +17 -8
  59. package/dist/replace.d.mts +19 -0
  60. package/dist/replace.d.ts +19 -3
  61. package/dist/replace.js +30 -50
  62. package/dist/replace.mjs +30 -26
  63. package/dist/types-DSNuiOhH.d.mts +519 -0
  64. package/dist/types-DSNuiOhH.d.ts +519 -0
  65. package/dist/vite.d.mts +22 -0
  66. package/dist/vite.d.ts +22 -1
  67. package/dist/vite.js +12 -35
  68. package/dist/vite.mjs +15 -30
  69. package/dist/weapp-tw-runtime-loader.d.mts +7 -0
  70. package/dist/{bundlers/webpack/loaders/weapp-tw-runtime-loader.d.ts → weapp-tw-runtime-loader.d.ts} +4 -2
  71. package/dist/weapp-tw-runtime-loader.js +12 -12
  72. package/dist/weapp-tw-runtime-loader.mjs +12 -8
  73. package/dist/webpack.d.mts +26 -0
  74. package/dist/webpack.d.ts +26 -1
  75. package/dist/webpack.js +12 -35
  76. package/dist/webpack.mjs +15 -30
  77. package/dist/webpack4.d.mts +27 -0
  78. package/dist/webpack4.d.ts +27 -1
  79. package/dist/webpack4.js +205 -192
  80. package/dist/webpack4.mjs +211 -189
  81. package/package.json +18 -19
  82. package/dist/babel/index.d.ts +0 -16
  83. package/dist/bundlers/gulp/index.d.ts +0 -8
  84. package/dist/bundlers/vite/index.d.ts +0 -3
  85. package/dist/bundlers/webpack/BaseUnifiedPlugin/v4.d.ts +0 -8
  86. package/dist/bundlers/webpack/BaseUnifiedPlugin/v5.d.ts +0 -8
  87. package/dist/bundlers/webpack/index.d.ts +0 -1
  88. package/dist/cache/index.d.ts +0 -32
  89. package/dist/constants-CFM1J-h1.js +0 -42
  90. package/dist/constants-Dy2Dd3Fz.mjs +0 -36
  91. package/dist/constants.d.ts +0 -7
  92. package/dist/css-macro/constants.d.ts +0 -14
  93. package/dist/debug/index.d.ts +0 -2
  94. package/dist/defaults-DUZZvtdg.mjs +0 -149
  95. package/dist/defaults-syv_N3uk.js +0 -156
  96. package/dist/defu-Cdz2PomB.js +0 -60
  97. package/dist/defu-n46TJT6t.mjs +0 -57
  98. package/dist/env.d.ts +0 -2
  99. package/dist/escape.d.ts +0 -4
  100. package/dist/extractors/split.d.ts +0 -3
  101. package/dist/index-B8TOcVAt.js +0 -130
  102. package/dist/index-BEIjgKpF.mjs +0 -11
  103. package/dist/index-BKZH-Gxq.mjs +0 -134
  104. package/dist/index-BPzIdybK.mjs +0 -513
  105. package/dist/index-Bc61v7B0.mjs +0 -124
  106. package/dist/index-DXeB6ex8.js +0 -136
  107. package/dist/index-DwZHOkK3.js +0 -526
  108. package/dist/index-HC-Qkn0i.js +0 -17
  109. package/dist/js/handlers.d.ts +0 -13
  110. package/dist/js/index.d.ts +0 -7
  111. package/dist/mangle/index.d.ts +0 -8
  112. package/dist/options-BHJnjA_a.mjs +0 -981
  113. package/dist/options-DAp5AdGz.js +0 -1014
  114. package/dist/options.d.ts +0 -2
  115. package/dist/postcss/cssVars.d.ts +0 -5
  116. package/dist/postcss/index.d.ts +0 -3
  117. package/dist/postcss/mp.d.ts +0 -8
  118. package/dist/postcss/plugins/ctx.d.ts +0 -6
  119. package/dist/postcss/plugins/index.d.ts +0 -7
  120. package/dist/postcss/plugins/post.d.ts +0 -5
  121. package/dist/postcss/plugins/pre.d.ts +0 -5
  122. package/dist/postcss/preflight.d.ts +0 -3
  123. package/dist/postcss/selectorParser.d.ts +0 -6
  124. package/dist/postcss/shared.d.ts +0 -3
  125. package/dist/postcss/symbols.d.ts +0 -1
  126. package/dist/reg.d.ts +0 -1
  127. package/dist/shared-DbJl6i6a.mjs +0 -25
  128. package/dist/shared-hzYeE1wX.js +0 -28
  129. package/dist/tailwindcss/patcher.d.ts +0 -8
  130. package/dist/tailwindcss/supportCustomUnit.d.ts +0 -6
  131. package/dist/types.d.ts +0 -179
  132. package/dist/utils.d.ts +0 -18
  133. package/dist/v5-B9S3lBOs.mjs +0 -174
  134. package/dist/v5-QURRYPNk.js +0 -181
  135. package/dist/wxml/Tokenizer.d.ts +0 -31
  136. package/dist/wxml/index.d.ts +0 -2
  137. package/dist/wxml/shared.d.ts +0 -2
  138. package/dist/wxml/utils.d.ts +0 -9
package/dist/webpack4.js CHANGED
@@ -1,203 +1,216 @@
1
- 'use strict';
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var _chunkHBQASQKYjs = require('./chunk-HBQASQKY.js');
4
4
 
5
- var options = require('./options-DAp5AdGz.js');
6
- var path = require('node:path');
7
- var fs = require('node:fs');
8
- var webpackSources = require('webpack-sources');
9
- var index = require('./index-DwZHOkK3.js');
10
- var defaults = require('./defaults-syv_N3uk.js');
11
- var index$1 = require('./index-HC-Qkn0i.js');
12
- require('magic-string');
13
- require('./replace.js');
14
- require('@weapp-core/escape');
15
- require('@ast-core/escape');
16
- require('./shared-hzYeE1wX.js');
17
- require('@weapp-core/regex');
18
- require('@babel/generator');
19
- require('@babel/traverse');
20
- require('@babel/parser');
21
- require('@babel/types');
22
- require('htmlparser2');
23
- require('postcss');
24
- require('node:process');
25
- require('semver');
26
- require('tailwindcss-patch');
27
- require('@tailwindcss-mangle/shared');
28
- require('lru-cache');
29
- require('md5');
30
- require('@csstools/postcss-is-pseudo-class');
31
- require('postcss-rem-to-responsive-pixel');
32
- require('postcss-selector-parser');
33
- require('./defu-Cdz2PomB.js');
34
- require('debug');
35
5
 
36
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
6
+ var _chunk33GCHXV2js = require('./chunk-33GCHXV2.js');
7
+ require('./chunk-D7TNNBED.js');
37
8
 
38
- var path__default = /*#__PURE__*/_interopDefaultCompat(path);
39
- var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
40
9
 
41
- const debug = index$1.createDebug();
42
- class UnifiedWebpackPluginV4 {
43
- constructor(options$1 = {}) {
44
- this.options = options.getOptions(options$1);
45
- this.appType = this.options.appType;
10
+
11
+ var _chunk23B34GUUjs = require('./chunk-23B34GUU.js');
12
+
13
+
14
+ var _chunkODCGCGWMjs = require('./chunk-ODCGCGWM.js');
15
+ require('./chunk-S2GPPMOJ.js');
16
+ require('./chunk-77FRX3XG.js');
17
+ require('./chunk-556KTBON.js');
18
+
19
+
20
+ var _chunkU2UGOG3Rjs = require('./chunk-U2UGOG3R.js');
21
+
22
+ // src/bundlers/webpack/BaseUnifiedPlugin/v4.ts
23
+ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
24
+ var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
25
+ var _webpacksources = require('webpack-sources');
26
+ var debug = _chunkHBQASQKYjs.createDebug.call(void 0, );
27
+ var UnifiedWebpackPluginV4 = class {
28
+ constructor(options = {}) {
29
+ this.options = _chunk33GCHXV2js.getOptions.call(void 0, options);
30
+ this.appType = this.options.appType;
31
+ }
32
+ apply(compiler) {
33
+ const {
34
+ mainCssChunkMatcher,
35
+ disabled,
36
+ onLoad,
37
+ onUpdate,
38
+ onEnd,
39
+ onStart,
40
+ styleHandler,
41
+ patch,
42
+ templateHandler,
43
+ jsHandler,
44
+ setMangleRuntimeSet,
45
+ runtimeLoaderPath,
46
+ cache,
47
+ twPatcher
48
+ } = this.options;
49
+ if (disabled) {
50
+ return;
51
+ }
52
+ patch == null ? void 0 : patch();
53
+ function getClassSet() {
54
+ return twPatcher.getClassSet();
46
55
  }
47
- apply(compiler) {
48
- const { mainCssChunkMatcher, disabled, onLoad, onUpdate, onEnd, onStart, styleHandler, patch, templateHandler, jsHandler, setMangleRuntimeSet, runtimeLoaderPath, cache, twPatcher, } = this.options;
49
- if (disabled) {
50
- return;
56
+ onLoad();
57
+ const loader = runtimeLoaderPath != null ? runtimeLoaderPath : _path2.default.resolve(__dirname, "./weapp-tw-runtime-loader.js");
58
+ const isExisted = _fs2.default.existsSync(loader);
59
+ const WeappTwRuntimeAopLoader = {
60
+ loader,
61
+ options: {
62
+ getClassSet
63
+ },
64
+ ident: null,
65
+ type: null
66
+ };
67
+ compiler.hooks.compilation.tap(_chunkODCGCGWMjs.pluginName, (compilation) => {
68
+ compilation.hooks.normalModuleLoader.tap(_chunkODCGCGWMjs.pluginName, (_loaderContext, module) => {
69
+ if (isExisted) {
70
+ const idx = module.loaders.findIndex((x) => x.loader.includes("postcss-loader"));
71
+ if (idx > -1) {
72
+ module.loaders.unshift(WeappTwRuntimeAopLoader);
73
+ }
51
74
  }
52
- patch === null || patch === void 0 ? void 0 : patch();
53
- function getClassSet() {
54
- return twPatcher.getClassSet();
75
+ });
76
+ });
77
+ compiler.hooks.emit.tapPromise(_chunkODCGCGWMjs.pluginName, (compilation) => _chunkU2UGOG3Rjs.__async.call(void 0, this, null, function* () {
78
+ onStart();
79
+ debug("start");
80
+ for (const chunk of compilation.chunks) {
81
+ if (chunk.id && chunk.hash) {
82
+ cache.calcHashValueChanged(chunk.id, chunk.hash);
55
83
  }
56
- onLoad();
57
- const loader = runtimeLoaderPath !== null && runtimeLoaderPath !== void 0 ? runtimeLoaderPath : path__default["default"].resolve(__dirname, './weapp-tw-runtime-loader.js');
58
- const isExisted = fs__default["default"].existsSync(loader);
59
- const WeappTwRuntimeAopLoader = {
60
- loader,
61
- options: {
62
- getClassSet,
84
+ }
85
+ const assets = compilation.assets;
86
+ const entries = Object.entries(assets);
87
+ const groupedEntries = _chunk23B34GUUjs.getGroupedEntries.call(void 0, entries, this.options);
88
+ const runtimeSet = getClassSet();
89
+ setMangleRuntimeSet(runtimeSet);
90
+ debug("get runtimeSet, class count: %d", runtimeSet.size);
91
+ if (Array.isArray(groupedEntries.html)) {
92
+ let noCachedCount = 0;
93
+ for (let i = 0; i < groupedEntries.html.length; i++) {
94
+ const [file, originalSource] = groupedEntries.html[i];
95
+ const rawSource = originalSource.source().toString();
96
+ const hash = cache.computeHash(rawSource);
97
+ const cacheKey = file;
98
+ cache.calcHashValueChanged(cacheKey, hash);
99
+ yield cache.process(
100
+ cacheKey,
101
+ () => {
102
+ const source = cache.get(cacheKey);
103
+ if (source) {
104
+ compilation.updateAsset(file, source);
105
+ debug("html cache hit: %s", file);
106
+ } else {
107
+ return false;
108
+ }
63
109
  },
64
- ident: null,
65
- type: null,
66
- };
67
- compiler.hooks.compilation.tap(index.pluginName, (compilation) => {
68
- compilation.hooks.normalModuleLoader.tap(index.pluginName, (_loaderContext, module) => {
69
- if (isExisted) {
70
- const idx = module.loaders.findIndex(x => x.loader.includes('postcss-loader'));
71
- if (idx > -1) {
72
- module.loaders.unshift(WeappTwRuntimeAopLoader);
73
- }
74
- }
75
- });
76
- });
77
- compiler.hooks.emit.tapPromise(index.pluginName, (compilation) => options.__awaiter(this, void 0, void 0, function* () {
78
- onStart();
79
- debug('start');
80
- for (const chunk of compilation.chunks) {
81
- if (chunk.id && chunk.hash) {
82
- cache.calcHashValueChanged(chunk.id, chunk.hash);
83
- }
84
- }
85
- const assets = compilation.assets;
86
- const entries = Object.entries(assets);
87
- const groupedEntries = defaults.getGroupedEntries(entries, this.options);
88
- const runtimeSet = getClassSet();
89
- setMangleRuntimeSet(runtimeSet);
90
- debug('get runtimeSet, class count: %d', runtimeSet.size);
91
- if (Array.isArray(groupedEntries.html)) {
92
- let noCachedCount = 0;
93
- for (let i = 0; i < groupedEntries.html.length; i++) {
94
- const [file, originalSource] = groupedEntries.html[i];
95
- const rawSource = originalSource.source().toString();
96
- const hash = cache.computeHash(rawSource);
97
- const cacheKey = file;
98
- cache.calcHashValueChanged(cacheKey, hash);
99
- yield cache.process(cacheKey, () => {
100
- const source = cache.get(cacheKey);
101
- if (source) {
102
- compilation.updateAsset(file, source);
103
- debug('html cache hit: %s', file);
104
- }
105
- else {
106
- return false;
107
- }
108
- }, () => options.__awaiter(this, void 0, void 0, function* () {
109
- const wxml = yield templateHandler(rawSource, {
110
- runtimeSet,
111
- });
112
- const source = new webpackSources.ConcatSource(wxml);
113
- compilation.updateAsset(file, source);
114
- onUpdate(file, rawSource, wxml);
115
- debug('html handle: %s', file);
116
- noCachedCount++;
117
- return {
118
- key: cacheKey,
119
- source,
120
- };
121
- }));
122
- }
123
- debug('html handle finish, total: %d, no-cached: %d', groupedEntries.html.length, noCachedCount);
124
- }
125
- if (Array.isArray(groupedEntries.js)) {
126
- let noCachedCount = 0;
127
- for (let i = 0; i < groupedEntries.js.length; i++) {
128
- const [file, originalSource] = groupedEntries.js[i];
129
- const cacheKey = defaults.removeExt(file);
130
- yield cache.process(cacheKey, () => {
131
- const source = cache.get(cacheKey);
132
- if (source) {
133
- compilation.updateAsset(file, source);
134
- debug('js cache hit: %s', file);
135
- }
136
- else {
137
- return false;
138
- }
139
- }, () => options.__awaiter(this, void 0, void 0, function* () {
140
- const rawSource = originalSource.source().toString();
141
- const mapFilename = `${file}.map`;
142
- const hasMap = Boolean(assets[mapFilename]);
143
- const { code, map } = yield jsHandler(rawSource, runtimeSet, {
144
- generateMap: hasMap,
145
- });
146
- const source = new webpackSources.ConcatSource(code);
147
- compilation.updateAsset(file, source);
148
- onUpdate(file, rawSource, code);
149
- debug('js handle: %s', file);
150
- noCachedCount++;
151
- if (hasMap && map) {
152
- const source = new webpackSources.RawSource(map.toString());
153
- compilation.updateAsset(mapFilename, source);
154
- }
155
- return {
156
- key: cacheKey,
157
- source,
158
- };
159
- }));
160
- }
161
- debug('js handle finish, total: %d, no-cached: %d', groupedEntries.js.length, noCachedCount);
162
- }
163
- if (Array.isArray(groupedEntries.css)) {
164
- let noCachedCount = 0;
165
- for (let i = 0; i < groupedEntries.css.length; i++) {
166
- const [file, originalSource] = groupedEntries.css[i];
167
- const rawSource = originalSource.source().toString();
168
- const hash = cache.computeHash(rawSource);
169
- const cacheKey = file;
170
- cache.calcHashValueChanged(cacheKey, hash);
171
- yield cache.process(cacheKey, () => {
172
- const source = cache.get(cacheKey);
173
- if (source) {
174
- compilation.updateAsset(file, source);
175
- debug('css cache hit: %s', file);
176
- }
177
- else {
178
- return false;
179
- }
180
- }, () => options.__awaiter(this, void 0, void 0, function* () {
181
- const css = yield styleHandler(rawSource, {
182
- isMainChunk: mainCssChunkMatcher(file, this.appType),
183
- });
184
- const source = new webpackSources.ConcatSource(css);
185
- compilation.updateAsset(file, source);
186
- onUpdate(file, rawSource, css);
187
- debug('css handle: %s', file);
188
- noCachedCount++;
189
- return {
190
- key: cacheKey,
191
- source,
192
- };
193
- }));
194
- }
195
- debug('css handle finish, total: %d, no-cached: %d', groupedEntries.css.length, noCachedCount);
196
- }
197
- debug('end');
198
- onEnd();
199
- }));
200
- }
201
- }
110
+ // @ts-ignore
111
+ () => _chunkU2UGOG3Rjs.__async.call(void 0, this, null, function* () {
112
+ const wxml = yield templateHandler(rawSource, {
113
+ runtimeSet
114
+ });
115
+ const source = new (0, _webpacksources.ConcatSource)(wxml);
116
+ compilation.updateAsset(file, source);
117
+ onUpdate(file, rawSource, wxml);
118
+ debug("html handle: %s", file);
119
+ noCachedCount++;
120
+ return {
121
+ key: cacheKey,
122
+ source
123
+ };
124
+ })
125
+ );
126
+ }
127
+ debug("html handle finish, total: %d, no-cached: %d", groupedEntries.html.length, noCachedCount);
128
+ }
129
+ if (Array.isArray(groupedEntries.js)) {
130
+ let noCachedCount = 0;
131
+ for (let i = 0; i < groupedEntries.js.length; i++) {
132
+ const [file, originalSource] = groupedEntries.js[i];
133
+ const cacheKey = _chunk23B34GUUjs.removeExt.call(void 0, file);
134
+ yield cache.process(
135
+ cacheKey,
136
+ () => {
137
+ const source = cache.get(cacheKey);
138
+ if (source) {
139
+ compilation.updateAsset(file, source);
140
+ debug("js cache hit: %s", file);
141
+ } else {
142
+ return false;
143
+ }
144
+ },
145
+ // @ts-ignore
146
+ () => _chunkU2UGOG3Rjs.__async.call(void 0, this, null, function* () {
147
+ const rawSource = originalSource.source().toString();
148
+ const mapFilename = `${file}.map`;
149
+ const hasMap = Boolean(assets[mapFilename]);
150
+ const { code, map } = yield jsHandler(rawSource, runtimeSet, {
151
+ generateMap: hasMap
152
+ });
153
+ const source = new (0, _webpacksources.ConcatSource)(code);
154
+ compilation.updateAsset(file, source);
155
+ onUpdate(file, rawSource, code);
156
+ debug("js handle: %s", file);
157
+ noCachedCount++;
158
+ if (hasMap && map) {
159
+ const source2 = new (0, _webpacksources.RawSource)(map.toString());
160
+ compilation.updateAsset(mapFilename, source2);
161
+ }
162
+ return {
163
+ key: cacheKey,
164
+ source
165
+ };
166
+ })
167
+ );
168
+ }
169
+ debug("js handle finish, total: %d, no-cached: %d", groupedEntries.js.length, noCachedCount);
170
+ }
171
+ if (Array.isArray(groupedEntries.css)) {
172
+ let noCachedCount = 0;
173
+ for (let i = 0; i < groupedEntries.css.length; i++) {
174
+ const [file, originalSource] = groupedEntries.css[i];
175
+ const rawSource = originalSource.source().toString();
176
+ const hash = cache.computeHash(rawSource);
177
+ const cacheKey = file;
178
+ cache.calcHashValueChanged(cacheKey, hash);
179
+ yield cache.process(
180
+ cacheKey,
181
+ () => {
182
+ const source = cache.get(cacheKey);
183
+ if (source) {
184
+ compilation.updateAsset(file, source);
185
+ debug("css cache hit: %s", file);
186
+ } else {
187
+ return false;
188
+ }
189
+ },
190
+ // @ts-ignore
191
+ () => _chunkU2UGOG3Rjs.__async.call(void 0, this, null, function* () {
192
+ const css = yield styleHandler(rawSource, {
193
+ isMainChunk: mainCssChunkMatcher(file, this.appType)
194
+ });
195
+ const source = new (0, _webpacksources.ConcatSource)(css);
196
+ compilation.updateAsset(file, source);
197
+ onUpdate(file, rawSource, css);
198
+ debug("css handle: %s", file);
199
+ noCachedCount++;
200
+ return {
201
+ key: cacheKey,
202
+ source
203
+ };
204
+ })
205
+ );
206
+ }
207
+ debug("css handle finish, total: %d, no-cached: %d", groupedEntries.css.length, noCachedCount);
208
+ }
209
+ debug("end");
210
+ onEnd();
211
+ }));
212
+ }
213
+ };
214
+
202
215
 
203
216
  exports.UnifiedWebpackPluginV4 = UnifiedWebpackPluginV4;