Meteor Issue #5387
Meteor imply by context?
▾ packages/
-- ▸ meteor-lib/ (3)
-- ▸ meteor-umbrella-that-loads-ecmascript/ (1)
-- ▸ meteor-uses-ecmascript-by-implying/ (2)
What happens is that on a package-only architecture I use an
umbrella
package(1) thatimply
'esecmascript
, then I have a package(2) that uses ES6 code without declaring that usesecmascript
. A third package(3) does use the impliedecmascript
from (1) and also the package (2) that uses ES6 code. The third package (3) is the unique added to.meteor/packages
.
It works when running on
development
mode but breaks onproduction
. While running ondevelopment
mode the code doesn't need to minified, and I guessecmascript
is implied by context. On production, the code is being parsed during minification considering ES6 only ifecmascript
is a direct dependency or implied directly by a package, but not when running in a context thatecmascript
exists.
Check with:
- Works!
$ meteor
- Don't work!
$ meteor --production