@parcel/packager-js 2.0.0-nightly.1373 → 2.0.0-nightly.1374

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.
@@ -88,7 +88,7 @@ class ESMOutputFormat {
88
88
  res += `\nexport {${exportSpecifiers.join(', ')}};`;
89
89
  lines++;
90
90
  }
91
- if (this.packager.shouldBundleQueue(this.packager.bundle)) {
91
+ if (this.packager.needsPrelude && this.packager.shouldBundleQueue(this.packager.bundle)) {
92
92
  // Should be last thing the bundle executes on intial eval
93
93
  res += `\n$parcel$global.rlb(${JSON.stringify(this.packager.bundle.publicId)})`;
94
94
  lines++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/packager-js",
3
- "version": "2.0.0-nightly.1373+6dcba3606",
3
+ "version": "2.0.0-nightly.1374+9e754a8ca",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,17 +17,17 @@
17
17
  "source": "src/index.js",
18
18
  "engines": {
19
19
  "node": ">= 12.0.0",
20
- "parcel": "2.0.0-nightly.1371+6dcba3606"
20
+ "parcel": "2.0.0-nightly.1372+9e754a8ca"
21
21
  },
22
22
  "dependencies": {
23
- "@parcel/diagnostic": "2.0.0-nightly.1373+6dcba3606",
24
- "@parcel/plugin": "2.0.0-nightly.1373+6dcba3606",
25
- "@parcel/rust": "2.9.4-nightly.2996+6dcba3606",
23
+ "@parcel/diagnostic": "2.0.0-nightly.1374+9e754a8ca",
24
+ "@parcel/plugin": "2.0.0-nightly.1374+9e754a8ca",
25
+ "@parcel/rust": "2.9.4-nightly.2997+9e754a8ca",
26
26
  "@parcel/source-map": "^2.1.1",
27
- "@parcel/types": "2.0.0-nightly.1373+6dcba3606",
28
- "@parcel/utils": "2.0.0-nightly.1373+6dcba3606",
27
+ "@parcel/types": "2.0.0-nightly.1374+9e754a8ca",
28
+ "@parcel/utils": "2.0.0-nightly.1374+9e754a8ca",
29
29
  "globals": "^13.2.0",
30
30
  "nullthrows": "^1.1.1"
31
31
  },
32
- "gitHead": "6dcba3606107eb02f3008e30678538f81a4fc902"
32
+ "gitHead": "9e754a8cacb848c5c419bef7ebb625123b93a442"
33
33
  }
@@ -106,7 +106,10 @@ export class ESMOutputFormat implements OutputFormat {
106
106
  lines++;
107
107
  }
108
108
 
109
- if (this.packager.shouldBundleQueue(this.packager.bundle)) {
109
+ if (
110
+ this.packager.needsPrelude &&
111
+ this.packager.shouldBundleQueue(this.packager.bundle)
112
+ ) {
110
113
  // Should be last thing the bundle executes on intial eval
111
114
  res += `\n$parcel$global.rlb(${JSON.stringify(
112
115
  this.packager.bundle.publicId,