reactjs - React component in node_modules not transpiled -


in webpack setup, experiencing weird don't understand.

i have created react component loaded via npm project, it's located in node_modules. since don't want include of dependencies in created bundle, have set babel-loader ignore node_modules:

module: {     rules: [         {             test: /\.js$/,             exclude: /node_modules/,             use: 'babel-loader',         },     ], }, 

i can use react fine, when want use component, it's not transpiled. usind third-party packages, works.

does component loaded via npm need contain webpack setup builds correctly?


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -