@atlaspack/transformer-js 3.2.3-canary.253 → 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.
- package/lib/JSTransformer.js +1 -2
- package/package.json +8 -8
- package/src/JSTransformer.ts +3 -2
package/lib/JSTransformer.js
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
28
|
-
"@atlaspack/feature-flags": "2.14.1-canary.
|
|
29
|
-
"@atlaspack/plugin": "2.14.5-canary.
|
|
30
|
-
"@atlaspack/rust": "3.2.1-canary.
|
|
31
|
-
"@atlaspack/utils": "2.14.5-canary.
|
|
32
|
-
"@atlaspack/workers": "2.14.5-canary.
|
|
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": "
|
|
44
|
+
"gitHead": "d1c489ce686b097172e23fdefb611bedb3782964"
|
|
45
45
|
}
|
package/src/JSTransformer.ts
CHANGED
|
@@ -314,8 +314,9 @@ export default new Transformer({
|
|
|
314
314
|
CONFIG_SCHEMA,
|
|
315
315
|
{
|
|
316
316
|
data: conf.contents,
|
|
317
|
-
|
|
318
|
-
|
|
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
|
},
|