@atlaspack/packager-js 2.22.1 → 2.22.2
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaspack/packager-js
|
|
2
2
|
|
|
3
|
+
## 2.22.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#768](https://github.com/atlassian-labs/atlaspack/pull/768) [`58b9fb0`](https://github.com/atlassian-labs/atlaspack/commit/58b9fb037680a36a0b4af7890f2a03532095b88f) Thanks [@benjervis](https://github.com/benjervis)! - Fixes a small error in the scope hoisting V2 fixes that caused assets to be wrapped unnecessarily
|
|
8
|
+
|
|
3
9
|
## 2.22.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -346,7 +346,7 @@ class ScopeHoistingPackager {
|
|
|
346
346
|
// The main entry needs to be check to find assets that would have gone in
|
|
347
347
|
// the top level scope
|
|
348
348
|
let mainEntry = this.bundle.getMainEntry();
|
|
349
|
-
if (mainEntry) {
|
|
349
|
+
if (mainEntry && !this.wrappedAssets.has(mainEntry.id)) {
|
|
350
350
|
moduleGroupParents.unshift(mainEntry);
|
|
351
351
|
}
|
|
352
352
|
}
|
package/package.json
CHANGED
|
@@ -469,7 +469,7 @@ export class ScopeHoistingPackager {
|
|
|
469
469
|
// The main entry needs to be check to find assets that would have gone in
|
|
470
470
|
// the top level scope
|
|
471
471
|
let mainEntry = this.bundle.getMainEntry();
|
|
472
|
-
if (mainEntry) {
|
|
472
|
+
if (mainEntry && !this.wrappedAssets.has(mainEntry.id)) {
|
|
473
473
|
moduleGroupParents.unshift(mainEntry);
|
|
474
474
|
}
|
|
475
475
|
}
|