@plumeria/webpack-plugin 0.22.4 → 0.23.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.
|
@@ -42,7 +42,6 @@ const t = __importStar(require("@babel/types"));
|
|
|
42
42
|
const path_1 = __importDefault(require("path"));
|
|
43
43
|
const fs_1 = __importDefault(require("fs"));
|
|
44
44
|
const create_1 = require("./create");
|
|
45
|
-
const glob_1 = require("@rust-gear/glob");
|
|
46
45
|
const zss_engine_1 = require("zss-engine");
|
|
47
46
|
const PROJECT_ROOT = process.cwd().split('node_modules')[0];
|
|
48
47
|
const PATTERN_PATH = path_1.default.join(PROJECT_ROOT, '**/*.{js,jsx,ts,tsx}');
|
|
@@ -289,7 +288,7 @@ function resolveTokensTableMemberExpressionByNode(node, tokensTable) {
|
|
|
289
288
|
function scanForKeyframes() {
|
|
290
289
|
const keyframesHashTableLocal = {};
|
|
291
290
|
const keyframesObjectTableLocal = {};
|
|
292
|
-
const files =
|
|
291
|
+
const files = fs_1.default.globSync(PATTERN_PATH, GLOB_OPTIONS);
|
|
293
292
|
for (const filePath of files) {
|
|
294
293
|
if (!isCSSDefineFile(filePath, 'keyframes'))
|
|
295
294
|
continue;
|
|
@@ -336,7 +335,7 @@ function scanForKeyframes() {
|
|
|
336
335
|
function scanForViewTransition() {
|
|
337
336
|
const viewTransitionHashTableLocal = {};
|
|
338
337
|
const viewTransitionObjectTableLocal = {};
|
|
339
|
-
const files =
|
|
338
|
+
const files = fs_1.default.globSync(PATTERN_PATH, GLOB_OPTIONS);
|
|
340
339
|
for (const filePath of files) {
|
|
341
340
|
if (!isCSSDefineFile(filePath, 'viewTransition'))
|
|
342
341
|
continue;
|
|
@@ -384,7 +383,7 @@ function scanForViewTransition() {
|
|
|
384
383
|
}
|
|
385
384
|
function scanForDefineConsts() {
|
|
386
385
|
const constTableLocal = {};
|
|
387
|
-
const files =
|
|
386
|
+
const files = fs_1.default.globSync(PATTERN_PATH, GLOB_OPTIONS);
|
|
388
387
|
for (const filePath of files) {
|
|
389
388
|
if (!isCSSDefineFile(filePath, 'defineConsts'))
|
|
390
389
|
continue;
|
|
@@ -426,7 +425,7 @@ function scanForDefineConsts() {
|
|
|
426
425
|
function scanForDefineTokens() {
|
|
427
426
|
const tokensTableLocal = {};
|
|
428
427
|
const defineTokensObjectTableLocal = {};
|
|
429
|
-
const files =
|
|
428
|
+
const files = fs_1.default.globSync(PATTERN_PATH, GLOB_OPTIONS);
|
|
430
429
|
for (const filePath of files) {
|
|
431
430
|
if (!isCSSDefineFile(filePath, 'defineTokens'))
|
|
432
431
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/webpack-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Plumeria Webpack plugin",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@babel/types": "^7.28.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@rust-gear/glob": "^0.2.2",
|
|
25
24
|
"@types/babel__core": "^7.20.5",
|
|
26
25
|
"webpack": "^5.101.0",
|
|
27
26
|
"zss-engine": "^0.2.94"
|