@bamboocss/vite 1.35.4 → 1.35.5
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/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -2392,8 +2392,9 @@ const foldSource = (options) => {
|
|
|
2392
2392
|
if (!definition || definition.getSourceFile() !== sourceFile) continue;
|
|
2393
2393
|
const nameNode = definition.getFirstAncestorByKind(ts_morph.SyntaxKind.VariableDeclaration)?.getNameNode();
|
|
2394
2394
|
if (!nameNode || !ts_morph.Node.isIdentifier(nameNode)) continue;
|
|
2395
|
-
|
|
2396
|
-
|
|
2395
|
+
const references = nameNode.findReferencesAsNodes();
|
|
2396
|
+
if (skipped.filter((item) => SURVIVES_TO_RUNTIME.has(item.reason) && item.end > item.start).some((item) => references.some((ref) => ref.getStart() >= item.start && ref.getStart() < item.end))) continue;
|
|
2397
|
+
const survivor = references.find((ref) => !applied.some(([from, to]) => ref.getStart() >= from && ref.getStart() < to));
|
|
2397
2398
|
if (!survivor) continue;
|
|
2398
2399
|
const survivorFile = survivor.getSourceFile();
|
|
2399
2400
|
const foreign = survivorFile !== sourceFile;
|
package/dist/index.mjs
CHANGED
|
@@ -2362,8 +2362,9 @@ const foldSource = (options) => {
|
|
|
2362
2362
|
if (!definition || definition.getSourceFile() !== sourceFile) continue;
|
|
2363
2363
|
const nameNode = definition.getFirstAncestorByKind(SyntaxKind.VariableDeclaration)?.getNameNode();
|
|
2364
2364
|
if (!nameNode || !Node.isIdentifier(nameNode)) continue;
|
|
2365
|
-
|
|
2366
|
-
|
|
2365
|
+
const references = nameNode.findReferencesAsNodes();
|
|
2366
|
+
if (skipped.filter((item) => SURVIVES_TO_RUNTIME.has(item.reason) && item.end > item.start).some((item) => references.some((ref) => ref.getStart() >= item.start && ref.getStart() < item.end))) continue;
|
|
2367
|
+
const survivor = references.find((ref) => !applied.some(([from, to]) => ref.getStart() >= from && ref.getStart() < to));
|
|
2367
2368
|
if (!survivor) continue;
|
|
2368
2369
|
const survivorFile = survivor.getSourceFile();
|
|
2369
2370
|
const foreign = survivorFile !== sourceFile;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/vite",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.5",
|
|
4
4
|
"description": "Vite integration for Bamboo CSS",
|
|
5
5
|
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"postcss": "8.5.26",
|
|
41
41
|
"postcss-selector-parser": "7.1.5",
|
|
42
42
|
"ts-morph": "28.0.0",
|
|
43
|
-
"@bamboocss/config": "1.35.
|
|
44
|
-
"@bamboocss/core": "1.35.
|
|
45
|
-
"@bamboocss/extractor": "1.35.
|
|
46
|
-
"@bamboocss/
|
|
47
|
-
"@bamboocss/
|
|
48
|
-
"@bamboocss/
|
|
49
|
-
"@bamboocss/
|
|
43
|
+
"@bamboocss/config": "1.35.5",
|
|
44
|
+
"@bamboocss/core": "1.35.5",
|
|
45
|
+
"@bamboocss/extractor": "1.35.5",
|
|
46
|
+
"@bamboocss/shared": "1.35.5",
|
|
47
|
+
"@bamboocss/logger": "1.35.5",
|
|
48
|
+
"@bamboocss/node": "1.35.5",
|
|
49
|
+
"@bamboocss/types": "1.35.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@jridgewell/trace-mapping": "^0.3.31",
|
|
53
53
|
"vite": "7.2.6",
|
|
54
|
-
"@bamboocss/fixture": "1.35.
|
|
54
|
+
"@bamboocss/fixture": "1.35.5"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vite": ">=5"
|