@atlaspack/packager-css 2.14.5-canary.190 → 2.14.5-canary.191
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/lib/CSSPackager.js +1 -3
- package/package.json +6 -6
- package/src/CSSPackager.ts +0 -1
package/lib/CSSPackager.js
CHANGED
|
@@ -292,9 +292,7 @@ bundle, asset) {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
if (!defaultImport && !usedSymbols.has('*')) {
|
|
295
|
-
let usedLocalSymbols = new Set([...usedSymbols].map(exportSymbol =>
|
|
296
|
-
// @ts-expect-error TS2731
|
|
297
|
-
`.${(0, _nullthrows().default)(asset.symbols.get(exportSymbol)).local}`));
|
|
295
|
+
let usedLocalSymbols = new Set([...usedSymbols].map(exportSymbol => `.${(0, _nullthrows().default)(asset.symbols.get(exportSymbol)).local}`));
|
|
298
296
|
ast.walkRules(rule => {
|
|
299
297
|
if (localSymbols.has(rule.selector) && !usedLocalSymbols.has(rule.selector)) {
|
|
300
298
|
rule.remove();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/packager-css",
|
|
3
|
-
"version": "2.14.5-canary.
|
|
3
|
+
"version": "2.14.5-canary.191+eedcbc408",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.14.1-canary.
|
|
20
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
21
|
-
"@atlaspack/types-internal": "2.14.1-canary.
|
|
22
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
19
|
+
"@atlaspack/diagnostic": "2.14.1-canary.259+eedcbc408",
|
|
20
|
+
"@atlaspack/plugin": "2.14.5-canary.191+eedcbc408",
|
|
21
|
+
"@atlaspack/types-internal": "2.14.1-canary.259+eedcbc408",
|
|
22
|
+
"@atlaspack/utils": "2.14.5-canary.191+eedcbc408",
|
|
23
23
|
"@parcel/source-map": "^2.1.1",
|
|
24
24
|
"lightningcss": "^1.28.2",
|
|
25
25
|
"nullthrows": "^1.1.1"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"check-ts": "tsc --emitDeclarationOnly --rootDir src",
|
|
37
37
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "eedcbc408fc1e86a2a8e25f1a41c57146d8529e1"
|
|
40
40
|
}
|
package/src/CSSPackager.ts
CHANGED