@atlaspack/transformer-js 3.2.3-canary.187 → 3.2.3-canary.189

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.
@@ -429,6 +429,7 @@ var _default = exports.default = new (_plugin().Transformer)({
429
429
  hmr_improvements: options.featureFlags.hmrImprovements,
430
430
  computed_properties_fix: options.featureFlags.unusedComputedPropertyFix,
431
431
  add_display_name: Boolean(config.addReactDisplayName),
432
+ exports_rebinding_optimisation: options.featureFlags.exportsRebindingOptimisation,
432
433
  magic_comments: Boolean(config === null || config === void 0 ? void 0 : config.magicComments) || (0, _featureFlags().getFeatureFlag)('supportWebpackChunkName'),
433
434
  callMacro: asset.isSource ? async (err, src, exportName, args, loc) => {
434
435
  let mod;
@@ -799,10 +800,12 @@ var _default = exports.default = new (_plugin().Transformer)({
799
800
  exported,
800
801
  local,
801
802
  loc,
802
- is_esm
803
+ is_esm,
804
+ is_static_binding_safe
803
805
  } of hoist_result.exported_symbols) {
804
806
  asset.symbols.set(exported, local, convertLoc(loc), {
805
- isEsm: is_esm
807
+ isEsm: is_esm,
808
+ isStaticBindingSafe: is_static_binding_safe
806
809
  });
807
810
  }
808
811
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-js",
3
- "version": "3.2.3-canary.187+5a0363f10",
3
+ "version": "3.2.3-canary.189+0684997c1",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,12 +25,12 @@
25
25
  "src"
26
26
  ],
27
27
  "dependencies": {
28
- "@atlaspack/diagnostic": "2.14.1-canary.255+5a0363f10",
29
- "@atlaspack/feature-flags": "2.14.1-canary.255+5a0363f10",
30
- "@atlaspack/plugin": "2.14.5-canary.187+5a0363f10",
31
- "@atlaspack/rust": "3.2.1-canary.187+5a0363f10",
32
- "@atlaspack/utils": "2.14.5-canary.187+5a0363f10",
33
- "@atlaspack/workers": "2.14.5-canary.187+5a0363f10",
28
+ "@atlaspack/diagnostic": "2.14.1-canary.257+0684997c1",
29
+ "@atlaspack/feature-flags": "2.14.1-canary.257+0684997c1",
30
+ "@atlaspack/plugin": "2.14.5-canary.189+0684997c1",
31
+ "@atlaspack/rust": "3.2.1-canary.189+0684997c1",
32
+ "@atlaspack/utils": "2.14.5-canary.189+0684997c1",
33
+ "@atlaspack/workers": "2.14.5-canary.189+0684997c1",
34
34
  "@parcel/source-map": "^2.1.1",
35
35
  "@swc/helpers": "^0.5.15",
36
36
  "browserslist": "^4.6.6",
@@ -42,5 +42,5 @@
42
42
  "@atlaspack/core": "2.23.5"
43
43
  },
44
44
  "type": "commonjs",
45
- "gitHead": "5a0363f1086e81068959b87e92064bed5a11a9b4"
45
+ "gitHead": "0684997c127a6204af1376b36e556fddd1ba5557"
46
46
  }
@@ -520,6 +520,8 @@ export default new Transformer({
520
520
  hmr_improvements: options.featureFlags.hmrImprovements,
521
521
  computed_properties_fix: options.featureFlags.unusedComputedPropertyFix,
522
522
  add_display_name: Boolean(config.addReactDisplayName),
523
+ exports_rebinding_optimisation:
524
+ options.featureFlags.exportsRebindingOptimisation,
523
525
  magic_comments:
524
526
  Boolean(config?.magicComments) ||
525
527
  getFeatureFlag('supportWebpackChunkName'),
@@ -971,8 +973,12 @@ export default new Transformer({
971
973
  local,
972
974
  loc,
973
975
  is_esm,
976
+ is_static_binding_safe,
974
977
  } of hoist_result.exported_symbols) {
975
- asset.symbols.set(exported, local, convertLoc(loc), {isEsm: is_esm});
978
+ asset.symbols.set(exported, local, convertLoc(loc), {
979
+ isEsm: is_esm,
980
+ isStaticBindingSafe: is_static_binding_safe,
981
+ });
976
982
  }
977
983
 
978
984
  // deps is a map of dependencies that are keyed by placeholder or specifier