-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
For me, adding the plugin doesn't trigger the babel-loader
plugins: [
new webpackLinkPlugin({
'MY_MODULE': [
path.resolve(__dirname, '../MY_MODULE'),
{
test: /\.js$/,
exclude: [/node_modules/],
include: [
path.resolve(__dirname, 'src')
],
loader: 'babel-loader'
}
]
})
This works, but forces the transpile of the dependent module even if --link isn't specified.
plugins: [
new webpackLinkPlugin({
'MY_MODULE': [
path.resolve(__dirname, '../MY_MODULE')
]
})
module: {
loaders: [
{
test: /\.js$/,
exclude: [/node_modules/], // Don't transpile deps.
include: [
path.resolve(__dirname, 'src'),
path.resolve(__dirname, '../MY_MODULE') // HAVE TO PUT THIS HERE
],
loader: 'babel-loader'
},
]
}
Metadata
Metadata
Assignees
Labels
No labels