Skip to content

Commit

Permalink
Updated webpack configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
automation-stack committed Nov 4, 2016
1 parent 66908f9 commit 24544fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"webpack-shell-plugin": "^0.4.2"
},
"dependencies": {
"babel-runtime": "^6.18.0",
"bluebird": "^3.4.6"
}
}
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('babel-polyfill');
import {SudoerDarwin, SudoerWin32, SudoerLinux} from '~/lib/sudoer';

export default (() => {
Expand Down
6 changes: 2 additions & 4 deletions webpack/config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let nodeModules = fs.readdirSync('./node_modules')
babelNode = './node_modules/babel-cli/bin/babel-node.js';

export default {
entry: ['babel-polyfill', `${srcPath}/index.js`],
entry: [`${srcPath}/index.js`],
output: {
path: distPath,
publicPath: distPath,
Expand All @@ -33,9 +33,7 @@ export default {
exclude: /node_modules/,
loader: 'babel',
query: {
cacheDirectory: true,
plugins: ['transform-runtime'],
presets: ['es2015', 'stage-0']
cacheDirectory: true
}
},
{
Expand Down

0 comments on commit 24544fe

Please sign in to comment.