Skip to content

Commit

Permalink
chore(env): bundle promise polyfill
Browse files Browse the repository at this point in the history
  - Change the babel plugin to es6-promise-esm
  - it uses import instead of require

Ref #272
  • Loading branch information
Jongmoon Yoon committed Jan 2, 2019
1 parent a6eeba3 commit 85c0a8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"transform-es3-property-literals",
"transform-es3-member-expression-literals",
"transform-object-assign",
"es6-promise"
"es6-promise-esm"
]
}

6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-es6-promise": "^1.1.1",
"babel-plugin-es6-promise-esm": "^1.1.1",
"babel-plugin-no-side-effect-class-properties": "0.0.4",
"babel-plugin-transform-es3-member-expression-literals": "^6.22.0",
"babel-plugin-transform-es3-property-literals": "^6.22.0",
Expand Down

0 comments on commit 85c0a8b

Please sign in to comment.