Nx
Enterprise
Nx
Sign in / Sign up
Open main menu
Nx
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Failed
master
7351e211 fix(webpack): ensure safe `process.env` fallback replacement (#34464) PR #30826 introduced a fallback definition for `process.env`: ```ts { 'process.env': '{}' } ``` Since `DefinePlugin` performs raw textual replacement, this can generate invalid JavaScript when user code accesses environment variables via dot notation: ```ts process.env.SOME_KEY ``` becomes: ```js {}.SOME_KEY ``` `{}` is parsed as a block statement (not an object literal), resulting in: > Unexpected token: punc (.) This PR updates the fallback to a parenthesized object literal: ```ts { 'process.env': '({})' } ``` which produces valid output: ```js ({}).SOME_KEY ``` This preserves the intended bundle-size optimization while ensuring syntactically correct output for standard `process.env.X` access patterns. ## Related Issue(s) Refs #30826 Fixes #34460 //CC @Coly010 @coolassassin
27 days ago
by mathiassch...
m
Succeeded
34464
d138326d fix(webpack): set fallback for process.env to '({})' Closes: #34460 Refs: #30826
27 days ago
by mathiassch...
m
Previous page
Previous
Next
Next page