Skip to content

Commit

Permalink
Bump swc
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Apr 5, 2023
1 parent bc41c3d commit d1443ae
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 110 deletions.
130 changes: 41 additions & 89 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"main": "dist/main.js",
"browserslist": "Chrome 70",
"dependencies": {
"@swc/helpers": "^0.4.14"
"@swc/helpers": "^0.5.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"module": "dist/module.js",
"browserslist": "IE >= 11",
"dependencies": {
"@swc/helpers": "^0.4.2"
"@swc/helpers": "^0.5.0"
}
}
8 changes: 4 additions & 4 deletions packages/core/integration-tests/test/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -5628,7 +5628,7 @@ describe('javascript', function () {
name: 'BuildError',
diagnostics: [
{
message: md`Failed to resolve '${'@swc/helpers/lib/_class_call_check.js'}' from '${normalizePath(
message: md`Failed to resolve '${'@swc/helpers/cjs/_class_call_check'}' from '${normalizePath(
require.resolve('@parcel/transformer-js/src/JSTransformer.js'),
)}'`,
origin: '@parcel/core',
Expand Down Expand Up @@ -5716,7 +5716,7 @@ describe('javascript', function () {
name: 'BuildError',
diagnostics: [
{
message: md`Failed to resolve '${'@swc/helpers/lib/_class_call_check.js'}' from '${normalizePath(
message: md`Failed to resolve '${'@swc/helpers/cjs/_class_call_check'}' from '${normalizePath(
require.resolve('@parcel/transformer-js/src/JSTransformer.js'),
)}'`,
origin: '@parcel/core',
Expand All @@ -5741,7 +5741,7 @@ describe('javascript', function () {
},
{
message:
'External dependency "@swc/helpers" does not satisfy required semver range "^0.4.12".',
'External dependency "@swc/helpers" does not satisfy required semver range "^0.5.0".',
origin: '@parcel/resolver-default',
codeFrames: [
{
Expand All @@ -5764,7 +5764,7 @@ describe('javascript', function () {
},
],
hints: [
'Update the dependency on "@swc/helpers" to satisfy "^0.4.12".',
'Update the dependency on "@swc/helpers" to satisfy "^0.5.0".',
],
},
],
Expand Down
6 changes: 3 additions & 3 deletions packages/core/integration-tests/test/transpilation.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,14 @@ describe('transpilation', function () {
.filePath,
'utf8',
);
assert(file.includes('@swc/helpers/lib/_class_call_check.js'));
assert(file.includes('@swc/helpers/cjs/_class_call_check'));

file = await outputFS.readFile(
nullthrows(b.getBundles().find(b => b.env.outputFormat === 'esmodule'))
.filePath,
'utf8',
);
assert(file.includes('@swc/helpers/src/_class_call_check.mjs'));
assert(file.includes('@swc/helpers/_/_class_call_check'));
});

it('should support commonjs versions of @swc/helpers without scope hoisting', async function () {
Expand All @@ -391,7 +391,7 @@ describe('transpilation', function () {
);

let file = await outputFS.readFile(b.getBundles()[0].filePath, 'utf8');
assert(file.includes('@swc/helpers/lib/_class_call_check.js'));
assert(file.includes('@swc/helpers/cjs/_class_call_check'));
await run(b);
});

Expand Down
Loading

0 comments on commit d1443ae

Please sign in to comment.