@plumeria/webpack-plugin 0.16.1 → 0.17.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.
|
@@ -650,14 +650,6 @@ function loader(source) {
|
|
|
650
650
|
pluginInstance.registerFileStyles(fileKey, fileStyles);
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
|
-
const useClientRegex = /^(['"])use client\1;?$/;
|
|
654
|
-
const lines = source.split('\n');
|
|
655
|
-
const idx = lines.findIndex((line) => useClientRegex.test(line.trim()));
|
|
656
|
-
if (idx !== -1) {
|
|
657
|
-
lines.splice(idx + 1, 0, 'import "@plumeria/webpack-plugin/zero-virtual.css";');
|
|
658
|
-
const newSource = lines.join('\n');
|
|
659
|
-
return callback(null, newSource);
|
|
660
|
-
}
|
|
661
653
|
if (callback)
|
|
662
654
|
callback(null, source + postfix);
|
|
663
655
|
return source + postfix;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/webpack-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Plumeria Webpack plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@rust-gear/glob": "^0.2.2",
|
|
25
25
|
"@types/babel__core": "^7.20.5",
|
|
26
26
|
"webpack": "^5.101.0",
|
|
27
|
-
"zss-engine": "^0.2.
|
|
27
|
+
"zss-engine": "^0.2.83"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|