Last active
November 8, 2018 03:07
-
-
Save gkatsev/d60b19120db3ada5d21a00ba5996f109 to your computer and use it in GitHub Desktop.
when running babel on `bar.js`, the output method `_interopRequireDefault` will have the return object with property `default` be unquoted. Commenting out line 6, will make `default` be quoted properly.
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
Show hidden characters
{ | |
"presets": [ "es3", ["es2015", {"loose": true}] ] | |
} |
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 Foo from './foo'; | |
class Bar {}; | |
// commenting out this file causes the `interopRequireDefault` method to have an unquoted `default` property name | |
typeof "foo"; |
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
export default class Foo {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment