Skip to content

Commit

Permalink
Try to get ping-centre into the babel chain
Browse files Browse the repository at this point in the history
- Remove the restriction on ES6 module processing from babel config
  (hopefully this is the right option to change)

- Rather than exclude all of node_modules, just include the one module
  we need to process, and implicitly exclude the rest

  - `include` syntax based on webpack/webpack#2031 (comment)
  • Loading branch information
jaredhirsch committed Feb 9, 2017
1 parent 3536f89 commit c5f7ced
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addon/src/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ const config = {
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: [ [ 'es2015', { modules: false } ], 'stage-2' ],
presets: [ 'es2015', 'stage-2' ],
plugins: [ 'transform-flow-strip-types' ]
},
exclude: /node_modules/,
include: __dirname
include: [
__dirname,
/node_modules\/ping-centre/
]
}
]
},
Expand Down

0 comments on commit c5f7ced

Please sign in to comment.