Skip to content

Commit

Permalink
Remove .babelrc and rebuild phoenix.js
Browse files Browse the repository at this point in the history
The .babelrc file causes the following error when using the dependency
from a file or git path:

> Module build failed: Error: Couldn't find preset "env" relative to
> directory "..."

The .babelrc file has been replaced with the equivalent in the
package.json

The babel-preset-env dependency has also been moved.
  • Loading branch information
Gazler committed Mar 14, 2018
1 parent 43c9829 commit 9cfde5a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 68 deletions.
1 change: 0 additions & 1 deletion .babelrc

This file was deleted.

63 changes: 2 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.3",
"babel-preset-env": "^1.6.1",
"webpack": "4.0.0",
"webpack-cli": "^2.0.10",
"documentation": "^4.0.0-rc.1",
"jsdom": "9.8.3",
"jsdom-global": "2.1.0",
"mocha": "~2.4.4",
"mock-socket": "^6.0.1",
"sinon": "^1.17.6"
"sinon": "^1.17.6",
"expose-loader": "^0.7.5"
},
"files": [
"README.md",
Expand All @@ -34,8 +34,5 @@
"docs": "documentation build assets/js/phoenix.js -f html -o doc/js",
"build": "webpack --mode production",
"watch": "webpack --mode development --watch"
},
"dependencies": {
"expose-loader": "^0.7.5"
}
}
Loading

0 comments on commit 9cfde5a

Please sign in to comment.