@atlaspack/transformer-js 3.2.3-canary.247 → 3.2.3-canary.249

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.
@@ -243,6 +243,7 @@ var _default = exports.default = new (_plugin().Transformer)({
243
243
  let magicComments = false;
244
244
  let addReactDisplayName = false;
245
245
  let enableGlobalThisAliaser = Boolean(options.env.NATIVE_GLOBAL_THIS_ALIASER);
246
+ let enableLazyLoadingTransformer = Boolean(options.env.NATIVE_LAZY_LOADING_TRANSFORMER);
246
247
  if (conf && conf.contents) {
247
248
  var _conf$contents, _conf$contents2, _conf$contents3, _conf$contents4, _conf$contents5;
248
249
  _utils().validateSchema.diagnostic(CONFIG_SCHEMA, {
@@ -281,7 +282,8 @@ var _default = exports.default = new (_plugin().Transformer)({
281
282
  decorators,
282
283
  useDefineForClassFields,
283
284
  magicComments,
284
- enableGlobalThisAliaser
285
+ enableGlobalThisAliaser,
286
+ enableLazyLoadingTransformer
285
287
  };
286
288
  },
287
289
  async transform({
@@ -433,6 +435,7 @@ var _default = exports.default = new (_plugin().Transformer)({
433
435
  exports_rebinding_optimisation: options.featureFlags.exportsRebindingOptimisation,
434
436
  magic_comments: Boolean(config === null || config === void 0 ? void 0 : config.magicComments) || (0, _featureFlags().getFeatureFlag)('supportWebpackChunkName'),
435
437
  enable_global_this_aliaser: Boolean(config.enableGlobalThisAliaser),
438
+ enable_lazy_loading_transformer: Boolean(config.enableLazyLoadingTransformer),
436
439
  callMacro: asset.isSource ? async (err, src, exportName, args, loc) => {
437
440
  let mod;
438
441
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-js",
3
- "version": "3.2.3-canary.247+02f6aa190",
3
+ "version": "3.2.3-canary.249+58527eec1",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,12 +24,12 @@
24
24
  "src"
25
25
  ],
26
26
  "dependencies": {
27
- "@atlaspack/diagnostic": "2.14.1-canary.315+02f6aa190",
28
- "@atlaspack/feature-flags": "2.14.1-canary.315+02f6aa190",
29
- "@atlaspack/plugin": "2.14.5-canary.247+02f6aa190",
30
- "@atlaspack/rust": "3.2.1-canary.247+02f6aa190",
31
- "@atlaspack/utils": "2.14.5-canary.247+02f6aa190",
32
- "@atlaspack/workers": "2.14.5-canary.247+02f6aa190",
27
+ "@atlaspack/diagnostic": "2.14.1-canary.317+58527eec1",
28
+ "@atlaspack/feature-flags": "2.14.1-canary.317+58527eec1",
29
+ "@atlaspack/plugin": "2.14.5-canary.249+58527eec1",
30
+ "@atlaspack/rust": "3.2.1-canary.249+58527eec1",
31
+ "@atlaspack/utils": "2.14.5-canary.249+58527eec1",
32
+ "@atlaspack/workers": "2.14.5-canary.249+58527eec1",
33
33
  "@parcel/source-map": "^2.1.1",
34
34
  "@swc/helpers": "^0.5.15",
35
35
  "browserslist": "^4.6.6",
@@ -41,5 +41,5 @@
41
41
  "@atlaspack/core": "2.26.0"
42
42
  },
43
43
  "type": "commonjs",
44
- "gitHead": "02f6aa1906953fc184d2b49c905c2ef815cb878d"
44
+ "gitHead": "58527eec15c1aebaaadbeb63586f3082c16beae3"
45
45
  }
@@ -306,6 +306,9 @@ export default new Transformer({
306
306
  let enableGlobalThisAliaser = Boolean(
307
307
  options.env.NATIVE_GLOBAL_THIS_ALIASER,
308
308
  );
309
+ let enableLazyLoadingTransformer = Boolean(
310
+ options.env.NATIVE_LAZY_LOADING_TRANSFORMER,
311
+ );
309
312
 
310
313
  if (conf && conf.contents) {
311
314
  validateSchema.diagnostic(
@@ -351,6 +354,7 @@ export default new Transformer({
351
354
  useDefineForClassFields,
352
355
  magicComments,
353
356
  enableGlobalThisAliaser,
357
+ enableLazyLoadingTransformer,
354
358
  };
355
359
  },
356
360
  async transform({asset, config, options, logger}) {
@@ -530,6 +534,9 @@ export default new Transformer({
530
534
  Boolean(config?.magicComments) ||
531
535
  getFeatureFlag('supportWebpackChunkName'),
532
536
  enable_global_this_aliaser: Boolean(config.enableGlobalThisAliaser),
537
+ enable_lazy_loading_transformer: Boolean(
538
+ config.enableLazyLoadingTransformer,
539
+ ),
533
540
  callMacro: asset.isSource
534
541
  ? async (err: any, src: any, exportName: any, args: any, loc: any) => {
535
542
  let mod;