@atlaspack/runtime-js 2.12.1-dev.3466 → 2.12.1-dev.3502

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/JSRuntime.js CHANGED
@@ -199,7 +199,10 @@ var _default = exports.default = new (_plugin().Runtime)({
199
199
  assets.push({
200
200
  filePath: _path().default.join(__dirname, `/conditions/${cond.publicId}.js`),
201
201
  code: assetCode,
202
- dependency: cond.ifTrueDependency,
202
+ // This dependency is important, as it's the last symbol handled in scope hoisting.
203
+ // That means that scope hoisting will use the module id for this asset to replace the symbol
204
+ // (rather than the actual conditional deps)
205
+ dependency: cond.ifFalseDependency,
203
206
  env: {
204
207
  sourceType: 'module'
205
208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/runtime-js",
3
- "version": "2.12.1-dev.3466+9a12fb8bd",
3
+ "version": "2.12.1-dev.3502+c2daeab5a",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,14 +13,14 @@
13
13
  "source": "src/JSRuntime.js",
14
14
  "engines": {
15
15
  "node": ">= 16.0.0",
16
- "parcel": "^2.12.1-dev.3466+9a12fb8bd"
16
+ "parcel": "^2.12.1-dev.3502+c2daeab5a"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/diagnostic": "2.12.1-dev.3466+9a12fb8bd",
20
- "@atlaspack/feature-flags": "2.12.1-dev.3466+9a12fb8bd",
21
- "@atlaspack/plugin": "2.12.1-dev.3466+9a12fb8bd",
22
- "@atlaspack/utils": "2.12.1-dev.3466+9a12fb8bd",
19
+ "@atlaspack/diagnostic": "2.12.1-dev.3502+c2daeab5a",
20
+ "@atlaspack/feature-flags": "2.12.1-dev.3502+c2daeab5a",
21
+ "@atlaspack/plugin": "2.12.1-dev.3502+c2daeab5a",
22
+ "@atlaspack/utils": "2.12.1-dev.3502+c2daeab5a",
23
23
  "nullthrows": "^1.1.1"
24
24
  },
25
- "gitHead": "9a12fb8bd1b72e407ed043e20337dc60fbec9cbe"
25
+ "gitHead": "c2daeab5a12461903159dec34df5671eaaa9b749"
26
26
  }
package/src/JSRuntime.js CHANGED
@@ -210,7 +210,10 @@ export default (new Runtime({
210
210
  assets.push({
211
211
  filePath: path.join(__dirname, `/conditions/${cond.publicId}.js`),
212
212
  code: assetCode,
213
- dependency: cond.ifTrueDependency,
213
+ // This dependency is important, as it's the last symbol handled in scope hoisting.
214
+ // That means that scope hoisting will use the module id for this asset to replace the symbol
215
+ // (rather than the actual conditional deps)
216
+ dependency: cond.ifFalseDependency,
214
217
  env: {sourceType: 'module'},
215
218
  });
216
219
  }