|
|
@ -25,6 +25,10 @@ module.exports = { |
|
|
|
}, |
|
|
|
}, |
|
|
|
resolve: { |
|
|
|
resolve: { |
|
|
|
extensions: ['.ts', '.js'], |
|
|
|
extensions: ['.ts', '.js'], |
|
|
|
|
|
|
|
// this is necessary for resolution of external libs like d3 in dev mode
|
|
|
|
|
|
|
|
// when core is linked: webpack will take d3 from this node_modules but not from
|
|
|
|
|
|
|
|
// internal so you get one version of d3
|
|
|
|
|
|
|
|
modules: [path.resolve(__dirname, '../node_modules'), 'node_modules'] |
|
|
|
}, |
|
|
|
}, |
|
|
|
output: { |
|
|
|
output: { |
|
|
|
filename: 'index.js', |
|
|
|
filename: 'index.js', |
|
|
|