Meteor-Community-Packages / meteor-schema-index

Control some MongoDB indexing with schema options

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

package breaks meteor app on IE9

Twisterking opened this issue · comments

Hi there!

So unfortunately your package is breaking my Meteor app for IE9 (many of my customer still use IE9 - don't ask! big companies preventing updates and all that ...).

Problem is here: link to file
This file is included on the client as well and you are using const right there. IE9 can't handle const --> syntax error.
Any chance on fixing this?

best, P

I think what you are missing is:

Package.onUse(function (api) {
  api.use('ecmascript');
});

see here.

Both #7 and #9 provide solutions to this.

hey @aldeed, this is a big issue... any timeline for releasing the fix?

Released the fix with 1.1.1. Thanks