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

False positive "Unused External Import" in rollup during v2 addon build #582

Open
lfloyd117 opened this issue Jan 10, 2025 · 0 comments
Open

Comments

@lfloyd117
Copy link

If using the task imported from ember-concurrency in a v2 Ember addon, rollup will complain during build time that the import is unused:

"task" imported from external module "ember-concurrency" but never used

It appears that after transpilation, the JS output in dist changes the task to import and use buildTask, which may play a roll in this.
This is with using the task syntax of:

myTask: Task<void, [number]> = task({ restartable: true }, async (value: number) => {
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

1 participant