-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX][BREAKING] Stop adding the
decorators
Babel plugin (#135)
In the most recent versions of `ember-cli-babel` we started including the legacy decorators transform by default. When used with this plugin, this causes breakage, because both plugins are adding _conflicting_ internal babel plugins. In general, this is problematic, because the `filter-imports` plugin is making assumptions about which version of decorators will be used. It would instead make more sense to allow the user to choose which version they want by adding and configuring the `@babel/plugin-proposal-decorators` package themselves. This PR removes the plugin, and adds the proposal package for local testing. Users of the package _should_ already be required to add the decorators transform if they are filtering decorators, so this shouldn't be an issue in general, but this is _technically_ breaking so I think it would make sense to bump a major version.
- Loading branch information
1 parent
68edbfb
commit f0bc062
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters