Skip to content

Commit

Permalink
fix: add missing env variable in rollup config (#1480)
Browse files Browse the repository at this point in the history
## CLA

- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required).
- [ ] Code changes are tested

## Description of the changes, What, Why and How?

## Changelog

-
  • Loading branch information
isekovanic authored Feb 28, 2025
1 parent 72ab15a commit a935e9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const normalBundle = {
external: externalPackages.concat(['https', 'jsonwebtoken', 'crypto']),
plugins: [
replace({ preventAssignment: true, 'process.env.PKG_VERSION': JSON.stringify(pkg.version) }),
replace({ preventAssignment: true, 'process.env.CLIENT_BUNDLE': JSON.stringify('') }),
external(),
nodeResolve({ extensions }),
babel(babelConfig),
Expand All @@ -74,6 +75,7 @@ const browserBundle = {
external: externalPackages,
plugins: [
replace({ preventAssignment: true, 'process.env.PKG_VERSION': JSON.stringify(pkg.version) }),
replace({ preventAssignment: true, 'process.env.CLIENT_BUNDLE': JSON.stringify('') }),
browserIgnore,
external(),
nodeResolve({ extensions }),
Expand All @@ -94,6 +96,7 @@ const fullBrowserBundle = {
],
plugins: [
replace({ preventAssignment: true, 'process.env.PKG_VERSION': JSON.stringify(pkg.version) }),
replace({ preventAssignment: true, 'process.env.CLIENT_BUNDLE': JSON.stringify('') }),
browserIgnore,
external(),
nodeResolve({ extensions, browser: true }),
Expand Down

0 comments on commit a935e9e

Please sign in to comment.