Closed jadhaidar closed 8 months ago
@jadhaidar can you try use version 3.0.0-alpha.0
?
can ou give me your version of webpack
, react
and node
?
@codecalm thank you for your reply! Unfortunately upgrading to 3.0.0-alpha.0
did not work.
Here are the versions I'm using:
"webpack": "5.47.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2",
"react": "^18.2.0",
"node": "16.14.2",
Realized our babel config was transpiling modules into commonjs
, preventing webpack from tree-shaking our code. Once we toggled it off we were good to go!
For reference:
['@babel/preset-env', { modules: false }],
Running webpack
v5.47.0
These are the only icons we're importing:
This is our webpack config:
Am I missing something here?