-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does webpack support require.extensions['.js'] ? #54
Comments
@lildemon https://github.com/kriasoft/react-starter-kit/blob/master/config/webpack.js#L86-L89 |
@lildemon also, I'm going to remove jsx transform from |
thanks :P I missed the "?" part of the regex |
I have made some modifications. Webpack now generates both client-side (app.js) and server-side (server.js) bundles, which is used for server-side rendering. There is now no need to use |
I see the gulpfile.js and webpack's config file, it doesn't seem that webpack will property handle jsx code because those file's extension is '.js' not '.jsx'
I try to run or debug to know how it works, but don't saw a clue
Except that gulpfile has code that change the node's require behavior to transform jsx and ES6 code first
My question is:
Will webpack use node's require() to transform jsx/ES6 code?
It seems that webpack don't have this kinds of behavior
Or did I missed something?
Thanks 👍
The text was updated successfully, but these errors were encountered: