-
-
Notifications
You must be signed in to change notification settings - Fork 237
Globals/Shim for accessing exports of a global variable #1227
Comments
Can you post your actual fuse.js? |
@jglover Hi index.js
Then |
Thanks all @nchanged that would be ideal but I can't change index.js, it's transpiled from another language to js. They're already exported to a variable on window. However
But I get an error that |
Can you reproduce it? |
Apologies for the slow reply, now I'm getting |
@jglover Hi, It' d be easier to help you if we had a chunk of code at least. 😉 |
FuseBox v4 Major UpgradeAs of today, the latest major version of FuseBox There are a lot of improvements, speed and config wise. Get started here We are still working on the documentation and polishing before the major release. We are getting very close. And we need help testing. npm install fuse-box@next Most of the issues that I am closing have been resolved, however, if you find that your issue is still relevant in |
Hi, just looking for some advice re: globals.
I have a private module which has a few exports, which is on window under a variable name (I can't change this). Essentially
window.externalModules.*
need to map towindow.*
In webpack the following would work:
The docs seem to suggest this can be done, but despite my efforts with dot syntax, array syntax, and setting handlers or wildcard as per the following I don't seem to be able to get it to work. Another point of note is the module I'm referring too doesn't exist in the node_modules directory in the same directory as
homeDir
orfuse.js
but a node_modules directory one directory down. The docs I'm referring to are:what I have currently is:
Which contains an index.js with the exports.
Much appreciate any advice on this one.
The text was updated successfully, but these errors were encountered: