-
Notifications
You must be signed in to change notification settings - Fork 385
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
process.env is in esm bundle #1679
Comments
I think it might come from https://github.com/algolia/autocomplete/blob/e81c31fbc89ad72229ed84b0318873d442ceb19b/packages/autocomplete-shared/src/warn.ts but I can't really find process.env anywhere |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When not using own bundler/transpiler, error of is thrown
Steps to reproduce
import('@docsearch/js').then(({default: docsearch}) => {
Uncaught (in promise) ReferenceError: process is not defined
Live reproduction:
https://codesandbox.io/s/restless-meadow-osexlj?from-embed=&file=/index.html
(til, you can import() from a url)
Expected behavior
code works
Environment
The text was updated successfully, but these errors were encountered: