@atlaspack/transformer-babel 2.14.25 → 2.14.26
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/CHANGELOG.md +11 -0
- package/lib/babel7.js +0 -1
- package/lib/config.js +0 -4
- package/package.json +5 -5
- package/src/babel7.ts +0 -1
- package/src/config.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaspack/transformer-babel
|
|
2
2
|
|
|
3
|
+
## 2.14.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
|
|
10
|
+
- @atlaspack/diagnostic@2.14.3
|
|
11
|
+
- @atlaspack/plugin@2.14.26
|
|
12
|
+
- @atlaspack/utils@2.18.3
|
|
13
|
+
|
|
3
14
|
## 2.14.25
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/lib/babel7.js
CHANGED
|
@@ -112,7 +112,6 @@ async function babel7(opts
|
|
|
112
112
|
for (let f of res.externalDependencies) {
|
|
113
113
|
if (!_path().default.isAbsolute(f)) {
|
|
114
114
|
opts.logger.warn({
|
|
115
|
-
// @ts-expect-error TS2345
|
|
116
115
|
message: (0, _diagnostic().md)`Ignoring non-absolute Babel external dependency: ${f}`,
|
|
117
116
|
hints: ['Please report this to the corresponding Babel plugin and/or to Parcel.']
|
|
118
117
|
});
|
package/lib/config.js
CHANGED
|
@@ -248,25 +248,21 @@ fs, babelConfig, logger) {
|
|
|
248
248
|
let diagnostics = [];
|
|
249
249
|
if (filteredPresets.length === 0 && foundRedundantPresets.size > 0 && plugins.length === 0) {
|
|
250
250
|
diagnostics.push({
|
|
251
|
-
// @ts-expect-error TS2345
|
|
252
251
|
message: (0, _diagnostic().md)`Parcel includes transpilation by default. Babel config __${filePath}__ contains only redundant presets. Deleting it may significantly improve build performance.`,
|
|
253
252
|
codeFrames: [{
|
|
254
253
|
filePath: configPath,
|
|
255
254
|
codeHighlights: await getCodeHighlights(fs, configPath, foundRedundantPresets)
|
|
256
255
|
}],
|
|
257
|
-
// @ts-expect-error TS2345
|
|
258
256
|
hints: [(0, _diagnostic().md)`Delete __${filePath}__`],
|
|
259
257
|
documentationURL: 'https://parceljs.org/languages/javascript/#default-presets'
|
|
260
258
|
});
|
|
261
259
|
} else if (foundRedundantPresets.size > 0) {
|
|
262
260
|
diagnostics.push({
|
|
263
|
-
// @ts-expect-error TS2345
|
|
264
261
|
message: (0, _diagnostic().md)`Parcel includes transpilation by default. Babel config __${filePath}__ includes the following redundant presets: ${[...foundRedundantPresets].map(p => _diagnostic().md.underline(p))}. Removing these may improve build performance.`,
|
|
265
262
|
codeFrames: [{
|
|
266
263
|
filePath: configPath,
|
|
267
264
|
codeHighlights: await getCodeHighlights(fs, configPath, foundRedundantPresets)
|
|
268
265
|
}],
|
|
269
|
-
// @ts-expect-error TS2345
|
|
270
266
|
hints: [(0, _diagnostic().md)`Remove the above presets from __${filePath}__`],
|
|
271
267
|
documentationURL: 'https://parceljs.org/languages/javascript/#default-presets'
|
|
272
268
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-babel",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.26",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.14.
|
|
20
|
-
"@atlaspack/plugin": "2.14.
|
|
19
|
+
"@atlaspack/diagnostic": "2.14.3",
|
|
20
|
+
"@atlaspack/plugin": "2.14.26",
|
|
21
21
|
"@parcel/source-map": "^2.1.1",
|
|
22
|
-
"@atlaspack/utils": "2.18.
|
|
22
|
+
"@atlaspack/utils": "2.18.3",
|
|
23
23
|
"browserslist": "^4.6.6",
|
|
24
24
|
"json5": "^2.2.0",
|
|
25
25
|
"nullthrows": "^1.1.1",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@babel/core": "^7.22.11",
|
|
30
30
|
"@babel/preset-env": "^7.22.14",
|
|
31
31
|
"@babel/types": "^7.22.11",
|
|
32
|
-
"@atlaspack/types": "2.15.
|
|
32
|
+
"@atlaspack/types": "2.15.16"
|
|
33
33
|
},
|
|
34
34
|
"type": "commonjs",
|
|
35
35
|
"scripts": {
|
package/src/babel7.ts
CHANGED
|
@@ -119,7 +119,6 @@ export default async function babel7(
|
|
|
119
119
|
for (let f of res.externalDependencies) {
|
|
120
120
|
if (!path.isAbsolute(f)) {
|
|
121
121
|
opts.logger.warn({
|
|
122
|
-
// @ts-expect-error TS2345
|
|
123
122
|
message: md`Ignoring non-absolute Babel external dependency: ${f}`,
|
|
124
123
|
hints: [
|
|
125
124
|
'Please report this to the corresponding Babel plugin and/or to Parcel.',
|
package/src/config.ts
CHANGED
|
@@ -326,7 +326,6 @@ async function warnOnRedundantPlugins(
|
|
|
326
326
|
plugins.length === 0
|
|
327
327
|
) {
|
|
328
328
|
diagnostics.push({
|
|
329
|
-
// @ts-expect-error TS2345
|
|
330
329
|
message: md`Parcel includes transpilation by default. Babel config __${filePath}__ contains only redundant presets. Deleting it may significantly improve build performance.`,
|
|
331
330
|
codeFrames: [
|
|
332
331
|
{
|
|
@@ -338,14 +337,12 @@ async function warnOnRedundantPlugins(
|
|
|
338
337
|
),
|
|
339
338
|
},
|
|
340
339
|
],
|
|
341
|
-
// @ts-expect-error TS2345
|
|
342
340
|
hints: [md`Delete __${filePath}__`],
|
|
343
341
|
documentationURL:
|
|
344
342
|
'https://parceljs.org/languages/javascript/#default-presets',
|
|
345
343
|
});
|
|
346
344
|
} else if (foundRedundantPresets.size > 0) {
|
|
347
345
|
diagnostics.push({
|
|
348
|
-
// @ts-expect-error TS2345
|
|
349
346
|
message: md`Parcel includes transpilation by default. Babel config __${filePath}__ includes the following redundant presets: ${[
|
|
350
347
|
...foundRedundantPresets,
|
|
351
348
|
].map((p) =>
|
|
@@ -361,7 +358,6 @@ async function warnOnRedundantPlugins(
|
|
|
361
358
|
),
|
|
362
359
|
},
|
|
363
360
|
],
|
|
364
|
-
// @ts-expect-error TS2345
|
|
365
361
|
hints: [md`Remove the above presets from __${filePath}__`],
|
|
366
362
|
documentationURL:
|
|
367
363
|
'https://parceljs.org/languages/javascript/#default-presets',
|