Skip to content

Commit

Permalink
Change cjs build target to ES5, csm build target to ESNext (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiuuY authored and shuding committed Dec 17, 2019
1 parent 700cd6c commit 20382d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"dev": "now dev",
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "ncc build src/index.ts -o dist -m -e react",
"build:esm": "tsc --module ES6 --outDir esm",
"build:esm": "tsc --target ESNext --module ES6 --outDir esm",
"watch": "tsc --watch",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"types": [
"node", "jest"
],
"target": "esnext",
"target": "es5",
"typeRoots": [
"./types",
"./node_modules/@types"
Expand Down

0 comments on commit 20382d5

Please sign in to comment.