Skip to content

Commit

Permalink
Make comment more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 26, 2023
1 parent 8535a7f commit 6043ea8
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/ember-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
];
Expand Down

0 comments on commit 6043ea8

Please sign in to comment.