-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document undefined issue #301
Comments
i think you should rather do a conditional import/require (parhaps some code splitting or dynamic import just when required) |
if you can help, your lot thanks |
something like: if (condition) {
import('something')
.then((something) => {
console.log(something.something);
});
} |
Is it working in react js ?? This condition ?? |
maybe. haven't tried out react if its build process dose support code splitting. |
could you please try, otherwise you can add the condition undefiend |
You can write your function like this 🤝 const myDownloadFunction = async () => {
const streamSaver = await import("streamsaver")
// OR
const streamSaver = await require("streamsaver")
// Do your fetch or anything
} |
could you please add the condition
The text was updated successfully, but these errors were encountered: