issues
search
imodeljs
/
create-react-app
Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
2
stars
7
forks
source link
fix webpack config interpreting cjs files as assets
#111
Closed
jason-crow
closed
10 months ago
jason-crow
commented
10 months ago
the current
webpack.config.js
would interpret
.cjs
files as assets preventing them from being loaded as source
solution was to amend the rule for
asset/resource
to exclude
.cjs
files
this issue came up because in the newer
axios
versions are configured to pull the source as
.cjs
for requires from a browser
see
🚑 webpack - loading cjs as an asset instead of source
webpack.config.js
would interpret.cjs
files as assets preventing them from being loaded as sourceasset/resource
to exclude.cjs
filesaxios
versions are configured to pull the source as.cjs
for requires from a browser