Skip to content

Commit 03af085

Browse files
authored
Merge pull request mobxjs#1724 from Lipus86/patch-2
Prevent rollup from breaking on `process.env.NODE_ENV`
2 parents dcd0e58 + 100bb2f commit 03af085

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/mobx.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ try {
4141
process.env.NODE_ENV !== "production"
4242
) {
4343
console.warn(
44-
"[mobx] you are running a minified build, but 'process.env.NODE_ENV' was not set to 'production' in your bundler. This results in an unnecessarily large and slow bundle"
44+
// Template literal(backtick) is used for fix issue with rollup-plugin-commonjs https://github.com/rollup/rollup-plugin-commonjs/issues/344
45+
`[mobx] you are running a minified build, but 'process.env.NODE_ENV' was not set to 'production' in your bundler. This results in an unnecessarily large and slow bundle`
4546
)
4647
}
4748
})()

0 commit comments

Comments
 (0)