Skip to content

Commit

Permalink
chore: bump oxc to v0.21.0 (#1656)
Browse files Browse the repository at this point in the history
<!-- Thank you for contributing! -->

### Description

The changelog is [here](oxc-project/oxc#4338).
Most of the snapshots changed due to `codegen` printing double quotes by
default.

Also, in this version, we have aligned the ts ast scope with TypeScript.
Many ignored ts tests may have been resolved.

---------

Co-authored-by: Yunfei <[email protected]>
  • Loading branch information
Dunqing and hyf0 authored Jul 18, 2024
1 parent 68ee262 commit fc5d0f8
Show file tree
Hide file tree
Showing 218 changed files with 1,289 additions and 1,277 deletions.
102 changes: 59 additions & 43 deletions Cargo.lock

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

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,8 @@ xxhash-rust = "0.8.10"
# oxc crates share the same version
arcstr = "1.2.0"
lightningcss = { version = "1.0.0-alpha.57" }
oxc = { version = "0.20.0", features = ["sourcemap_concurrent", "transformer", "minifier"] }
oxc_transform_napi = { version = "0.20.0" }

oxc = { version = "0.21.0", features = ["sourcemap_concurrent", "transformer", "minifier"] }
oxc_transform_napi = { version = "0.21.0" }

[profile.release]
codegen-units = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rolldown/tests/common/case.rs
source: crates/rolldown_testing/src/case/case.rs
expression: content
input_file: crates/rolldown/tests/esbuild/bundler_ts/ts_abstract_class_field_use_define
---
Expand All @@ -10,7 +10,7 @@ input_file: crates/rolldown/tests/esbuild/bundler_ts/ts_abstract_class_field_use
```js
//#region entry.ts
const keepThisToo = Symbol('keepThisToo');
const keepThisToo = Symbol("keepThisToo");
class Foo {
keepThis;
[keepThisToo];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: crates/rolldown/tests/common/case.rs
source: crates/rolldown_testing/src/case/case.rs
expression: content
input_file: crates/rolldown/tests/esbuild/bundler_ts/ts_import_cts
---
Expand All @@ -12,7 +12,7 @@ input_file: crates/rolldown/tests/esbuild/bundler_ts/ts_import_cts
//#region required.cjs
var require_required = __commonJSMin((exports, module) => {
console.log('works');
console.log("works");
});
//#endregion
Expand Down

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 @@ -10,7 +10,7 @@ input_file: crates/rolldown/tests/esbuild/dce/base64_loader_remove_unused
```js
//#region entry.js
console.log('unused import');
console.log("unused import");
//#endregion
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ input_file: crates/rolldown/tests/esbuild/dce/data_url_loader_remove_unused
```js
//#region entry.js
console.log('unused import');
console.log("unused import");
//#endregion
```
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var [remove4, ...remove5] = [...[1, 2], 3];
var [,, remove6] = [, , 3];
var [KEEP2] = [x];
var [KEEP3] = [...{}];
var { KEEP4 } = {};
var { KEEP4: KEEP4 } = {};
//#endregion
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ using null_keep = null;
await using await_null_keep = null;
using throw_keep = {};
using dispose_keep = {[Symbol.dispose]() {
console.log('side effect');
console.log("side effect");
}};
await using await_asyncDispose_keep = {[Symbol.asyncDispose]() {
console.log('side effect');
console.log("side effect");
}};
using undef_keep = undefined;
await using await_undef_keep = undefined;
Expand Down
Loading

0 comments on commit fc5d0f8

Please sign in to comment.