How do you bundle a global script? #3435
Unanswered
ifeltsweet
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a certain file that is already prebuilt for usage in the browser that I would like to inline into the main bundle so that its contents are available globally (on
window
).I've tried with
import '@okta/okta-auth-js/dist/okta-auth-js.min.js'
but it didn't work.FYI, I'm doing this because okta/okta-auth-js can't be bundled with Snowpack due to them mixing esm with cjs.
Beta Was this translation helpful? Give feedback.
All reactions