Skip to content

Instantly share code, notes, and snippets.

@avaly
Created January 6, 2018 12:17
Show Gist options
  • Save avaly/805cb77f3d2ec6e773ce32b63c7f94c3 to your computer and use it in GitHub Desktop.
Save avaly/805cb77f3d2ec6e773ce32b63c7f94c3 to your computer and use it in GitHub Desktop.
std-esm-0.19.1-bug
{
"presets": ["flow"]
}
const foo: string = 'lorem ipsum';
export default {
foo,
};
{
"name": "esm",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"@std/esm": {
"debug": true,
"esm": "js"
},
"dependencies": {
"@std/esm": "0.18.0",
"babel-core": "^6.26.0",
"babel-preset-flow": "^6.23.0",
"babel-register": "^6.26.0"
}
}
require('babel-register');
require = require('@std/esm')(module);
const config = require('./config');
console.info('config', config, config.default);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment