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

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.
@@ -168,7 +168,8 @@ const SCRIPT_ERRORS = {
168
168
  var _default = exports.default = new (_plugin().Transformer)({
169
169
  async loadConfig({
170
170
  config,
171
- options
171
+ options,
172
+ logger
172
173
  }) {
173
174
  let packageJson = await config.getPackage();
174
175
  let isJSX, pragma, pragmaFrag, jsxImportSource, automaticJSXRuntime, reactRefresh, decorators, useDefineForClassFields;
@@ -434,6 +435,7 @@ var _default = exports.default = new (_plugin().Transformer)({
434
435
  add_display_name: Boolean(config.addReactDisplayName),
435
436
  exports_rebinding_optimisation: options.featureFlags.exportsRebindingOptimisation,
436
437
  magic_comments: Boolean(config === null || config === void 0 ? void 0 : config.magicComments) || (0, _featureFlags().getFeatureFlag)('supportWebpackChunkName'),
438
+ is_source: asset.isSource,
437
439
  enable_global_this_aliaser: Boolean(config.enableGlobalThisAliaser),
438
440
  enable_lazy_loading_transformer: Boolean(config.enableLazyLoadingTransformer),
439
441
  callMacro: asset.isSource ? async (err, src, exportName, args, loc) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-js",
3
- "version": "3.2.3-canary.249+58527eec1",
3
+ "version": "3.2.3-canary.250+9cd952197",
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.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",
27
+ "@atlaspack/diagnostic": "2.14.1-canary.318+9cd952197",
28
+ "@atlaspack/feature-flags": "2.14.1-canary.318+9cd952197",
29
+ "@atlaspack/plugin": "2.14.5-canary.250+9cd952197",
30
+ "@atlaspack/rust": "3.2.1-canary.250+9cd952197",
31
+ "@atlaspack/utils": "2.14.5-canary.250+9cd952197",
32
+ "@atlaspack/workers": "2.14.5-canary.250+9cd952197",
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": "58527eec15c1aebaaadbeb63586f3082c16beae3"
44
+ "gitHead": "9cd9521978f783046e2ae4ce78f2de7aeb07d073"
45
45
  }
@@ -4,7 +4,6 @@ import type {
4
4
  SourceLocation,
5
5
  FilePath,
6
6
  FileCreateInvalidation,
7
- ConditionMeta,
8
7
  } from '@atlaspack/types';
9
8
  import type {SchemaEntity} from '@atlaspack/utils';
10
9
  import type {Diagnostic} from '@atlaspack/diagnostic';
@@ -173,7 +172,7 @@ type MacroContext = {
173
172
  };
174
173
 
175
174
  export default new Transformer({
176
- async loadConfig({config, options}) {
175
+ async loadConfig({config, options, logger}) {
177
176
  let packageJson = await config.getPackage();
178
177
  let isJSX,
179
178
  pragma,
@@ -533,6 +532,7 @@ export default new Transformer({
533
532
  magic_comments:
534
533
  Boolean(config?.magicComments) ||
535
534
  getFeatureFlag('supportWebpackChunkName'),
535
+ is_source: asset.isSource,
536
536
  enable_global_this_aliaser: Boolean(config.enableGlobalThisAliaser),
537
537
  enable_lazy_loading_transformer: Boolean(
538
538
  config.enableLazyLoadingTransformer,