Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWebpack defined but never used. #573
Comments
This comment has been minimized.
This comment has been minimized.
|
The Can you post your entire |
feross
added
the
question
label
Jul 23, 2016
feross
closed this
Jul 23, 2016
This comment has been minimized.
This comment has been minimized.
|
I know the variable isn't being used in this config - I believe I was following a tutorial that included it, which is why I stuck it up there. I know sometimes with React you import React (and used to set it up as a var), but you sometimes wouldn't be directly referencing React itself. But it was still needed. Not sure if that's the same for webpack or not. I'm pretty new to js frameworks. :P
|
This comment has been minimized.
This comment has been minimized.
|
You can probably just remove that line from your config and you're good to go! It's not needed. The React situation is a bit different. With React, you're requiring it because later the JSX compiler is going to replace the JSX with calls to |
This comment has been minimized.
This comment has been minimized.
|
Makes sense! Thanks. |
noahtallen commentedJul 23, 2016
I just installed standard js in Atom to clean up a few of my files. I was going through my webpack.config.js file and it's catching
var webpack = require('webpack')and saying webpack is never used. Looked around for a while but never found anything that could fix this.