You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I struggled to use DocSearch@alpha via CDN.
It's because the built versions contain references to process, which isn't defined in a browser environment.
With a build tool, you can replace it, as @Haroenv mentioned in #980, but if I use it via CDN,
I have to include another code snippet:
Description
I struggled to use DocSearch@alpha via CDN.
It's because the built versions contain references to
process
, which isn't defined in a browser environment.With a build tool, you can replace it, as @Haroenv mentioned in #980, but if I use it via CDN,
I have to include another code snippet:
Steps to reproduce
Here's a minimal example:
uncomment the
const process ...
part and it should work.Expected behavior
It would be nice to just be able to use this version of Docsearch without having to mock
process
.Environment
The text was updated successfully, but these errors were encountered: