Last active
March 20, 2018 07:35
-
-
Save terrierscript/77426bee6ed63dfd99dc to your computer and use it in GitHub Desktop.
babel-polyfillとbabel-runtimeの使い分けに迷ったので調べた ref: https://qiita.com/terrierscript/items/d2a9d5d4daedaacff924
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(0, _entries2.default)({ | |
"foo": "baz" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.entries({"foo": "baz"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "babel-polyfill" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- どっちも import "babel-polyfill" しているとすると・・・ --> | |
<script type="text/javascript" src="./script1.js"> | |
</script> | |
<script type="text/javascript" src="./script2.js"> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Object.entries({"foo": "baz"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- どっちも import "babel-polyfill" しているとすると・・・ --> | |
<script type="text/javascript" src="./script1.js"> | |
</script> | |
<script type="text/javascript" src="./script2.js"> | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught Error: only one instance of babel-polyfill is allowed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught Error: only one instance of babel-polyfill is allowed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment