Dynamically import modules from other webpack bundles. Painless code sharing between separate apps
BSD 3-Clause "New" or "Revised" License
415
stars
42
forks
source link
Exclude some modules from being hashed. Using the original name of the request #52
Closed
ScriptedAlchemy closed 4 years ago
Right now react is hashed into the id, as seen below. In some cases you might not want to hash a module and instead leave it as react
Implementation
Add another option to this object in src/webpack.js
Then youll want to look at how i track dependencies, pretty much use something similar to locate the original request, userRequest is "react"
Where to apply the new feature:
look for this:
Id
console.log(module)
and you'll probably be able to find it on the object.debugging
run
yarn demo:debug
, then open chrome and you should see the node logo in the inspector, click on it and itll open a console connected to node.js