Add different file in production vs development in package


#1

I have a simple package to include Vue.js I’d like to include the development version in development, and the live version when in production. Unfortunately when I do this, I get “Meteor is not defined”. How do I do this in a package? Thank you!

Package.onUse(function(api) {
    api.versionsFrom('1.0');
    if(Meteor.isDevelopment){
        api.addFiles('dist/vue.common.js', 'client');
    }else{
        api.addFiles('dist/vue.min.js', 'client');
    }
});