diff --git a/lib/ember-plugins.js b/lib/ember-plugins.js index 18759e93..66509a31 100644 --- a/lib/ember-plugins.js +++ b/lib/ember-plugins.js @@ -162,18 +162,17 @@ function _getModuleResolutionPlugins(config) { function _getProposalDecoratorsAndClassPlugins(config) { if (!config.shouldIgnoreDecoratorAndClassPlugins) { return [ -/** - * Required for apps to use `@ember/template-compliation` - * for transforming templates from babel-plugin-ember-template-compilation - * which shipped in ember-cli-htmlbars 6.2 - * - * Normally this plugin wouldn't be required because the feature has shipped - * in all browsers, but because we have really old plugins, they do not - * support parsing the static block syntax, so we need to compile it away - * when using plugin-proposal-class-properties, which is required - * when using non-spec decorators. - */ - "@babel/plugin-transform-class-static-block", + /** + * Required for apps to use `@ember/template-compliation` + * for transforming templates from babel-plugin-ember-template-compilation + * which shipped in ember-cli-htmlbars 6.2 + * + * Normally this plugin wouldn't be required because the feature has shipped + * in all browsers, but because we have legacy decorators, and + * legacy decorators do not support parsing the static block syntax, + * we need to compile it away. + */ + ["@babel/plugin-transform-class-static-block"], ["@babel/plugin-proposal-decorators", { legacy: true }], ["@babel/plugin-proposal-class-properties"], ];