react-tree-menu
react-tree-menu copied to clipboard
Provided babelified components as part of npm prepublish
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.
+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');
},