Skip to content

Commit

Permalink
chore: add babel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
grvcoelho committed Apr 12, 2018
1 parent ca1a46e commit c6951bb
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": ["es2015"],
"plugins": [
"add-module-exports",
"ramda"
]
}
62 changes: 62 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
},
"homepage": "https://github.com/grvcoelho/difflint#readme",
"devDependencies": {
"babel-loader": "^7.1.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-ramda": "^1.6.1",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14"
}
Expand Down
9 changes: 9 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ const config = {
devtool: 'source-map',
target: 'node',
mode: 'production',
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
exclude: /node_modules/,
},
],
},
}

module.exports = config

0 comments on commit c6951bb

Please sign in to comment.