@atlaspack/packager-js 2.12.1-dev.3567 → 2.13.1-canary.3630
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/CHANGELOG.md +17 -0
- package/lib/ScopeHoistingPackager.js +4 -1
- package/package.json +9 -9
- package/src/ScopeHoistingPackager.js +5 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @atlaspack/packager-js
|
|
2
|
+
|
|
3
|
+
## 2.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#335](https://github.com/atlassian-labs/atlaspack/pull/335) [`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf) Thanks [@yamadapc](https://github.com/yamadapc)! - Initial changeset release
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf)]:
|
|
12
|
+
- @atlaspack/diagnostic@2.13.0
|
|
13
|
+
- @atlaspack/feature-flags@2.13.0
|
|
14
|
+
- @atlaspack/plugin@2.13.0
|
|
15
|
+
- @atlaspack/rust@2.13.0
|
|
16
|
+
- @atlaspack/types@2.13.0
|
|
17
|
+
- @atlaspack/utils@2.13.0
|
|
@@ -955,7 +955,10 @@ ${code}
|
|
|
955
955
|
return true;
|
|
956
956
|
}
|
|
957
957
|
let unused = incomingDeps.every(d => {
|
|
958
|
-
let symbols =
|
|
958
|
+
let symbols = this.bundleGraph.getUsedSymbols(d);
|
|
959
|
+
|
|
960
|
+
// No used symbols available for the asset, make sure we keep all of them
|
|
961
|
+
if (!symbols) return false;
|
|
959
962
|
return !symbols.has(symbol) && !symbols.has('*');
|
|
960
963
|
});
|
|
961
964
|
return !unused;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/packager-js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.1-canary.3630+10a6f37ef",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
"main": "lib/index.js",
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"engines": {
|
|
15
|
-
"atlaspack": "
|
|
15
|
+
"atlaspack": "2.13.1-canary.3630+10a6f37ef",
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.
|
|
20
|
-
"@atlaspack/feature-flags": "2.
|
|
21
|
-
"@atlaspack/plugin": "2.
|
|
22
|
-
"@atlaspack/rust": "2.
|
|
23
|
-
"@atlaspack/types": "2.
|
|
24
|
-
"@atlaspack/utils": "2.
|
|
19
|
+
"@atlaspack/diagnostic": "2.13.1-canary.3630+10a6f37ef",
|
|
20
|
+
"@atlaspack/feature-flags": "2.13.1-canary.3630+10a6f37ef",
|
|
21
|
+
"@atlaspack/plugin": "2.13.1-canary.3630+10a6f37ef",
|
|
22
|
+
"@atlaspack/rust": "2.13.1-canary.3630+10a6f37ef",
|
|
23
|
+
"@atlaspack/types": "2.13.1-canary.3630+10a6f37ef",
|
|
24
|
+
"@atlaspack/utils": "2.13.1-canary.3630+10a6f37ef",
|
|
25
25
|
"@parcel/source-map": "^2.1.1",
|
|
26
26
|
"globals": "^13.2.0",
|
|
27
27
|
"nullthrows": "^1.1.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "10a6f37ef063d0227ebb26310383e899dbd9b1e6"
|
|
30
30
|
}
|
|
@@ -1329,7 +1329,11 @@ ${code}
|
|
|
1329
1329
|
}
|
|
1330
1330
|
|
|
1331
1331
|
let unused = incomingDeps.every((d) => {
|
|
1332
|
-
let symbols =
|
|
1332
|
+
let symbols = this.bundleGraph.getUsedSymbols(d);
|
|
1333
|
+
|
|
1334
|
+
// No used symbols available for the asset, make sure we keep all of them
|
|
1335
|
+
if (!symbols) return false;
|
|
1336
|
+
|
|
1333
1337
|
return !symbols.has(symbol) && !symbols.has('*');
|
|
1334
1338
|
});
|
|
1335
1339
|
return !unused;
|