Is possible to dinamically select imported files from a package?

Hi, I want to create a package with some .JS components.

Does anyone know if is there a way for the package user to choose which JS components to import dynamically ? To avoid include all JS files.

The stage is similar to “import” in scss, where you reference the package name and the file from the client.

Also, is possible to create a file in the client directory when installing the package?


AFAIK, with current package system, this is not possible.

@vjau is right, but have a look at the ES2015 module PR, slated for Meteor 1.3, the next major release.

thanks, great news! I’m trying ajax calls based in settings params, at least for now.