Skip to content

Instantly share code, notes, and snippets.

@kirbysayshi
Last active November 11, 2015 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kirbysayshi/c0df1bf8bbbac53d0c1c to your computer and use it in GitHub Desktop.
Save kirbysayshi/c0df1bf8bbbac53d0c1c to your computer and use it in GitHub Desktop.
show how babelify fails to read babelrc
{
"presets": [
"es2015",
"stage-0"
]
}
import Promise from 'es6-promise';
import fetch from 'isomorphic-fetch';
Promise.polyfill();
console.log('hello');
{
"name": "babelify-test",
"version": "0.0.0",
"private": true,
"license": "Spotify",
"browserify": {
"transform": [
[
"babelify",
{
"sourceMapRelative": "true"
}
],
"envify"
]
},
"engines": {
"node": ">=0.12"
},
"scripts": {
"js": "browserify index.js -o bundle.js"
},
"pre-commit": [
"codestyle"
],
"devDependencies": {
"babel-cli": "^6.1.2",
"babel-preset-es2015": "^6.1.2",
"babel-preset-react": "^6.1.2",
"babel-preset-stage-0": "^6.1.2",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"envify": "^3.4.0"
},
"dependencies": {
"es6-promise": "^3.0.2",
"isomorphic-fetch": "^2.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment