Closed mydearxym closed 7 years ago
I will check it as soon;-)
This line cause the problem, remove it and re-build, react-boilerplate
works well in my machine.
react-lite
can't work with transform-react-inline-elements
, you will get a bundle include both react
and react-lite
.
it worked! thanks for point out that .
but according to transform-react-inline-elements doc, this plugin :
Replaces the React.createElement function with a more optimized one for production...
i wonder it's this more optimized one for production
matters ?
I do'nt think it matters, but you can switch react/react-lite
to see the different and feel free to make you own choice.
thanks @Lucifier129
and i suggest add this babel limitation to readme or doc
Yeah, I done it yesterday. Click here and see the last one.
cool 👍
amazing work !
i use react-lite with react-boilerplate , it did shrink the build size, but got this error in brower (regular react works fine):
webpack config
Reproduce:
check out a demo for this issue if you have time, then
npm install && npm run build && cd ./build