You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can simply prevent a module or file from being loaded into a bundle by specifying a
value of false for any of the keys. This is useful if you know certain codepaths will not
be executed client side but find it awkward to split up or change the code structure.
If I want to disable e.g. some local module "./server/only.js" inside package "sample". The sample/package.json fragment will contain:
"browser": {
"./server/only.js": false
}
However what if I decide to this module from the external package, e.g. an external package code has:
var only = require("sample/server/only");
Shall the packager replace the only with empty module in both places or only inside of the "sample"?
The text was updated successfully, but these errors were encountered:
yurydelendik
changed the title
How ignored modules shall behave when exported from outside
How ignored modules shall behave when imported from outside
Apr 12, 2016
Spec says:
If I want to disable e.g. some local module "./server/only.js" inside package "sample". The sample/package.json fragment will contain:
However what if I decide to this module from the external package, e.g. an external package code has:
Shall the packager replace the
only
with empty module in both places or only inside of the "sample"?The text was updated successfully, but these errors were encountered: