Here is the error I get trying to build an app using the operator ??=
with --production
. Works fine without the --production
flag.
Your app is crashing. Here's the latest log:
Started MongoDB.
Errors prevented startup:
While minifying app code:
packages/minifyStdJS/plugin/minify-js.js:96:26: Babili minification error within dynamic/imports/client/pdf.js:
imports/client/pdf.js
This experimental syntax requires enabling the parser plugin: 'logicalAssignment':
cMapUrl ??= CMAP_URL;
at maybeThrowMinifyErrorBySourceFile (packages/minifyStdJS/plugin/minify-js.js:96:26)
at packages/minifyStdJS/plugin/minify-js.js:135:9
at Array.forEach (<anonymous>)
at MeteorBabelMinifier.processFilesForBundle (packages/minifyStdJS/plugin/minify-js.js:118:9)
While minifying app code:
packages/minifyStdJS/plugin/minify-js.js:96:26: Babili minification error within dynamic/imports/client/pdf.js:
imports/client/pdf.js
This experimental syntax requires enabling the parser plugin: 'logicalAssignment':
cMapUrl ??= CMAP_URL;
at maybeThrowMinifyErrorBySourceFile (packages/minifyStdJS/plugin/minify-js.js:96:26)
at packages/minifyStdJS/plugin/minify-js.js:135:9
at Array.forEach (<anonymous>)
at MeteorBabelMinifier.processFilesForBundle (packages/minifyStdJS/plugin/minify-js.js:118:9)
Your application has errors. Waiting for file change.
Two questions:
- How does one configure babel to allow the use of
logicalAssigment
(this is a dynamic import, no idea if it matters)? - Also why is it talking about babili which was replaced by babel-minifier 4 years ago?
EDIT: same error with ||=
.