meteor / meteor-feature-requests

A tracker for Meteor issues that are requests for new functionality, not bugs.
Other
89 stars 3 forks source link

Allow package.js to have dev dependencies #356

Open vparpoil opened 5 years ago

vparpoil commented 5 years ago

When writing atmosphere packages, you may want to use dev-only functionalities. These functionalities should not be compiled for production by the meteor build command.

package.js file should allow to define specific Api.use or Api.addFiles that would be compiled only in development Mode (ie when Meteor.isDevelopment === true). It could be done in another definition in Package like Package.onDev.

The use case is similar to Npm devDependencies.

Alternative for us for now is to use conditional imports inside the package.

What do you think ?