You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, we updated app.js to conditionally use webpack.dev.js if NODE_ENV === 'development'. However, this is never set, causing OpenMCT to use production/test webpack configs. This is breaking sourcemaps in development mode.
Fix is to also use webpack.dev.js if NODE_ENV is not set.
Expected vs Current Behavior
OpenMCT should produce sourcemaps in development mode, but it's not.
Steps to Reproduce
Ensure NODE_ENV is not set: unset NODE_ENV
npm install
npm start
Examine the source and notice there are no sourcemaps
Environment
Open MCT Version: release/2.0.5
Deployment Type: local
OS: any
Browser: any
Impact Check List
Data loss or misrepresented data?
Regression? Did this used to work or has it always been broken?
Is there a workaround available?
Does this impact a critical component?
Is this just a visual bug with no functional impact?
Does this block the execution of e2e tests?
Does this have an impact on Performance?
Additional Information
The text was updated successfully, but these errors were encountered:
Summary
Recently, we updated
app.js
to conditionally usewebpack.dev.js
ifNODE_ENV === 'development'
. However, this is never set, causing OpenMCT to use production/test webpack configs. This is breaking sourcemaps in development mode.Fix is to also use
webpack.dev.js
ifNODE_ENV
is not set.Expected vs Current Behavior
OpenMCT should produce sourcemaps in development mode, but it's not.
Steps to Reproduce
NODE_ENV
is not set:unset NODE_ENV
npm install
npm start
Environment
release/2.0.5
Impact Check List
Additional Information
The text was updated successfully, but these errors were encountered: