@atlaspack/transformer-js 3.2.3-canary.252 → 3.2.3-canary.255

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.
@@ -249,8 +249,7 @@ var _default = exports.default = new (_plugin().Transformer)({
249
249
  var _conf$contents, _conf$contents2, _conf$contents3, _conf$contents4, _conf$contents5;
250
250
  _utils().validateSchema.diagnostic(CONFIG_SCHEMA, {
251
251
  data: conf.contents,
252
- // FIXME
253
- source: await options.inputFS.readFile(conf.filePath, 'utf8'),
252
+ source: (0, _featureFlags().getFeatureFlag)('schemaValidationDeferSourceLoading') ? () => options.inputFS.readFileSync(conf.filePath, 'utf8') : await options.inputFS.readFile(conf.filePath, 'utf8'),
254
253
  filePath: conf.filePath,
255
254
  prependKey: `/${(0, _diagnostic().encodeJSONKeyComponent)('@atlaspack/transformer-js')}`
256
255
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-js",
3
- "version": "3.2.3-canary.252+01868d011",
3
+ "version": "3.2.3-canary.255+d1c489ce6",
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.320+01868d011",
28
- "@atlaspack/feature-flags": "2.14.1-canary.320+01868d011",
29
- "@atlaspack/plugin": "2.14.5-canary.252+01868d011",
30
- "@atlaspack/rust": "3.2.1-canary.252+01868d011",
31
- "@atlaspack/utils": "2.14.5-canary.252+01868d011",
32
- "@atlaspack/workers": "2.14.5-canary.252+01868d011",
27
+ "@atlaspack/diagnostic": "2.14.1-canary.323+d1c489ce6",
28
+ "@atlaspack/feature-flags": "2.14.1-canary.323+d1c489ce6",
29
+ "@atlaspack/plugin": "2.14.5-canary.255+d1c489ce6",
30
+ "@atlaspack/rust": "3.2.1-canary.255+d1c489ce6",
31
+ "@atlaspack/utils": "2.14.5-canary.255+d1c489ce6",
32
+ "@atlaspack/workers": "2.14.5-canary.255+d1c489ce6",
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": "01868d0116693b7e80b5f7d3ba9fd3d21934525c"
44
+ "gitHead": "d1c489ce686b097172e23fdefb611bedb3782964"
45
45
  }
@@ -314,8 +314,9 @@ export default new Transformer({
314
314
  CONFIG_SCHEMA,
315
315
  {
316
316
  data: conf.contents,
317
- // FIXME
318
- source: await options.inputFS.readFile(conf.filePath, 'utf8'),
317
+ source: getFeatureFlag('schemaValidationDeferSourceLoading')
318
+ ? () => options.inputFS.readFileSync(conf.filePath, 'utf8')
319
+ : await options.inputFS.readFile(conf.filePath, 'utf8'),
319
320
  filePath: conf.filePath,
320
321
  prependKey: `/${encodeJSONKeyComponent('@atlaspack/transformer-js')}`,
321
322
  },