ember-cli / ember-cli/babel-plugin-filter-imports
Possible Feature: Optionally don't remove references
- Dominant language
- JavaScript
- Stars
- 18
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
This just popped up in https://github.com/ember-decorators/argument/issues/43, we have a use case for wanting to be able to _just_ remove the imports, and keep all references.
Basically we have a shim that acts just like the global class `Element` in the browser (just re-exports it), but exports a shim class to make fastboot work in Node environments. When we strip all the layers of type checking away the browser code should work exactly the same as before, so there is no need to remove the references.
I'm currently adding a plugin to the library itself to do this, I'm not sure it's going to be a very common use case at all so I definitely understand not adding it upstream here, but I thought I'd bring it up.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.