ojisan-toybox / html-webpack-plugin-with-babel-loader

babel-loaderのexclude設定は必要?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html-webpack-plugin-with-babel-loader

babel-loader の exclude: /node_modules/ 設定は必要?

現象

Error: /node_modules/react-dom/index.js?:7 return extendStatics(d, b); が起きた

これは html-webpack-plugin を使った時に発現した。

ts-loader にexclude: /node_modules/つけると治った。

結果

babel-loader, ts-loader 共にexclude: /node_modules/なくても問題ない

理由は React 側にあるぽいので別レポジトリで実験する

About

babel-loaderのexclude設定は必要?


Languages

Language:JavaScript 73.5%Language:HTML 18.3%Language:TypeScript 8.3%