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

Generate code for the ES6 target #2565

Merged
merged 4 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions bin/wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Changed

- The JavaScript code now targets ES6. This should ensure compatibility on a wider range of platforms. ([#2565](https://github.com/paritytech/smoldot/pull/2565))

## 0.6.26 - 2022-07-20

### Added
Expand Down
5 changes: 3 additions & 2 deletions bin/wasm-node/javascript/tsconfig-cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"lib": [
"es2015"
"es6"
],
"target": "es2015",
"target": "es6",
"module": "commonjs",
"downlevelIteration": true,
"outDir": "./dist/cjs",
},
}
7 changes: 4 additions & 3 deletions bin/wasm-node/javascript/tsconfig-mjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"lib": [
"es2020"
"es6",
],
"target": "es2020",
"module": "es2020",
"target": "es6",
"module": "es6",
"downlevelIteration": true,
"outDir": "./dist/mjs",
}
}