-
Notifications
You must be signed in to change notification settings - Fork 13
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
Safari support #212
Comments
Thanks for reporting. The intended behavior depends on the webpack mode (https://webpack.js.org/guides/production/#specify-the-mode):
I've found https://github.com/pahund/webpack-devprod-experiment which does a similar thing. |
I found this problem in Gerrit master, which now uses |
The JavaScript package `safevalues` introduced in I7f7ac71c uses the environment variable `NODE_ENV`. According to the discussion in google/safevalues#212, this should be defined when bundling the library. So use the plugin `rollup-plugin-define` to define `process.env.NODE_ENV`. Release-Notes: skip Change-Id: I017336a05af99e4e7517221ab9658df7eb5646ad
Gerrit bug https://bugs.chromium.org/p/gerrit/issues/detail?id=16296 is closed. |
The JavaScript package `safevalues` introduced in I7f7ac71c uses the environment variable `NODE_ENV`. According to the discussion in google/safevalues#212, this should be defined when bundling the library. So use the plugin `rollup-plugin-define` to define `process.env.NODE_ENV`. Release-Notes: skip Change-Id: I017336a05af99e4e7517221ab9658df7eb5646ad
Safari (version 16) does not support TrustedTypes and
safevalues
thus falls back to its own implementation (HtmlImpl
).But
HtmlImpl
is only working in nodejs environments as it checks for an environment variable viaprocess.env
(see html_impl.ts:20)When using
safevalues
in Safari, this only leads to the error message 'ReferenceError: Can't find variable: process'.The text was updated successfully, but these errors were encountered: