Skip to content

Commit

Permalink
Generate code for the ES6 target (#2565)
Browse files Browse the repository at this point in the history
* Generate code for the ES6 target

* PR number

* Also enable downlevelIteration

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
tomaka and mergify[bot] authored Jul 29, 2022
1 parent c5ff972 commit 6971658
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
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",
}
}

0 comments on commit 6971658

Please sign in to comment.