meteor-feature-requests icon indicating copy to clipboard operation
meteor-feature-requests copied to clipboard

Allow package.js to have dev dependencies

Open vparpoil opened this issue 6 years ago • 0 comments

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 ?

vparpoil avatar May 27 '19 08:05 vparpoil