web
web copied to clipboard
fix(storybook-builder): define only necessary process.env globally
What I did
- improved security by not allowing to bundle all env vars, especially unnecessarily
- move env.NODE_ENV to globals defined in the preview index.html, so that rare packages that require it can use it dynamically and rollup can optimise it later as a whole when bundling for production
- removed prebundling of
tiny-invariantas it's not needed anymore which was one of the goals of above changes
🦋 Changeset detected
Latest commit: b133b30466b8c22aab0c962fdfd115c04609281c
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 1 package
| Name | Type |
|---|---|
| @web/storybook-builder | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR