In my ember-cli-build.js file I'm importing a vendor library called new-relic by using app.import('vendor/new-relic.js'), I would like to pass a parameter called env to the new-relic vendor file and use it in the new-relic.js file. I tried doing
app.import('vendor/new-relic.js', { env: 'production' });
When I try to console log env in the vendor file, it says undefined. Is there any way to pass the env to the vendor file?
Aucun commentaire:
Enregistrer un commentaire