Skip to content

Commit a935e9e

Browse files
authored
fix: add missing env variable in rollup config (#1480)
## 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 -
1 parent 72ab15a commit a935e9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ const normalBundle = {
5050
external: externalPackages.concat(['https', 'jsonwebtoken', 'crypto']),
5151
plugins: [
5252
replace({ preventAssignment: true, 'process.env.PKG_VERSION': JSON.stringify(pkg.version) }),
53+
replace({ preventAssignment: true, 'process.env.CLIENT_BUNDLE': JSON.stringify('') }),
5354
external(),
5455
nodeResolve({ extensions }),
5556
babel(babelConfig),
@@ -74,6 +75,7 @@ const browserBundle = {
7475
external: externalPackages,
7576
plugins: [
7677
replace({ preventAssignment: true, 'process.env.PKG_VERSION': JSON.stringify(pkg.version) }),
78+
replace({ preventAssignment: true, 'process.env.CLIENT_BUNDLE': JSON.stringify('') }),
7779
browserIgnore,
7880
external(),
7981
nodeResolve({ extensions }),
@@ -94,6 +96,7 @@ const fullBrowserBundle = {
9496
],
9597
plugins: [
9698
replace({ preventAssignment: true, 'process.env.PKG_VERSION': JSON.stringify(pkg.version) }),
99+
replace({ preventAssignment: true, 'process.env.CLIENT_BUNDLE': JSON.stringify('') }),
97100
browserIgnore,
98101
external(),
99102
nodeResolve({ extensions, browser: true }),

0 commit comments

Comments
 (0)