Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intructions for addon bundling #22

Open
kellyselden opened this issue Apr 24, 2018 · 3 comments
Open

Intructions for addon bundling #22

kellyselden opened this issue Apr 24, 2018 · 3 comments

Comments

@kellyselden
Copy link

I think it is

module.exports = {
  name: 'my-addon',

  importTransforms: require('ember-cli-cjs-transform').importTransforms
};
@kellyselden
Copy link
Author

This seems to work, but the addon's test suite gets

WARNING: Addon "ember-cli-cjs-transform" is defining a transform name: cjs that is already being defined. Using transform from addon: "ember-cli-cjs-transform".

@buschtoens
Copy link

If I, as an addon maintainer, add this packages as a dependency, I would expect the consuming host app to find this transform without having to do the above hack. I would also expect the host app to "de-duplicate" the transform without displaying a warning.

@richard-viney
Copy link

This issue has been open for a while - is there a workaround for the warning message when multiple addons use ember-cli-cjs-transform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants