-
Notifications
You must be signed in to change notification settings - Fork 55
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
Instructions on using esm version to readme #463
Comments
The ESM build in version
at places with calls of |
@hoangvvo how are you using ga-lite? I tried a quick example with CodeSandbox and I could not reproduce your issue: <script type="module">
import galite from "https://unpkg.com/ga-lite@2.1.6/dist/ga-lite.esm.js";
galite("create", "UA-XXXXXXXX-X", "auto");
console.log(galite);
</script> https://codesandbox.io/s/hidden-dew-lyhbus?file=/index.html The error
I think the source code does not contain references to webpack in itself, but it uses some module-local variables that it names with |
Thanks for the response! I am using it with Next.js with ESM enabled (which uses webpack) so it prefers the ESM version. I created a reproduction here: https://codesandbox.io/s/ga-lite-object-define-property-undefined-kn4lnv Version |
No description provided.
The text was updated successfully, but these errors were encountered: