Last active
November 5, 2015 20:02
-
-
Save mdouglass/9515f7439949b5d2cc17 to your computer and use it in GitHub Desktop.
repro case for https://github.com/babel/babel/issues/2852
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": [ | |
"es2015", | |
], | |
"plugins": [ | |
"syntax-export-extensions" | |
] | |
} |
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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
var test = exports.test = 42; | |
//# sourceMappingURL=lib.js.map |
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
'use strict'; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
var _lib = require('./lib'); | |
//# sourceMappingURL=main.js.map |
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
{ | |
"name": "export-repro", | |
"version": "0.0.1", | |
"main": "src/main.js", | |
"scripts": { | |
"transpile": "babel src --out-dir dist --source-maps" | |
}, | |
"devDependencies": { | |
"babel-cli": "^6.1.2", | |
"babel-core": "^6.1.2", | |
"babel-preset-es2015": "^6.1.2", | |
"babel-plugin-syntax-export-extensions": "^6.0.14" | |
} | |
} |
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 const test = 42 |
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 * as bob from './lib' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment