Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: add --experimental-strip-types #53725

Merged
merged 8 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: update swc to 1.7.0
  • Loading branch information
marco-ippolito committed Jul 24, 2024
commit 17c49caab833955cb3e0054c3c516efd52c7ecaa
6 changes: 3 additions & 3 deletions deps/swc/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@swc/binding_typescript_wasm",
"name": "@swc/wasm-typescript",
"collaborators": [
"강동윤 <kdy1997.dev@gmail.com>"
],
"description": "wasm module for swc",
"version": "1.7.0-rc.1",
"version": "1.7.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand All @@ -16,4 +16,4 @@
],
"main": "wasm.js",
"types": "wasm.d.ts"
}
}
169 changes: 109 additions & 60 deletions deps/swc/wasm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/internal/modules/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ function lazyLoadTSParser() {

function tsParse(source) {
const parse = lazyLoadTSParser();
const result = parse(source, {
const { code } = parse(source, {
mode: 'strip-only',
});
return result;
return code;
}

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion src/swc_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// Refer to tools/dep_updaters/update-swc.sh
#ifndef SRC_SWC_VERSION_H_
#define SRC_SWC_VERSION_H_
#define SWC_VERSION "1.7.0-rc.1"
#define SWC_VERSION "1.7.0"
#endif // SRC_SWC_VERSION_H_