Open swillard-r7 opened 8 years ago
+1
+1
+1
+1
See also #19.
We worked around this by setting exclude
to a function in our webpack.config.js:
module: {
loaders: [{
test: /.jsx?$/,
loader: 'babel-loader',
exclude(file) {
if (file.startsWith(__dirname + '/node_modules/react-tree-menu')) {
return false;
}
return file.startsWith(__dirname + '/node_modules');
},
Would it be possible, as part of your build/prepublish of this project, to include the transpiled version of your components? I would like to pull in several components into my app, but I don't want to specify a babel-loader (I'm using webpack) to convert things from the node_modules directory.