Skip to content

Commit 2386fc5

Browse files
committed
Make comment more accurate
1 parent a911bc7 commit 2386fc5

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

lib/ember-plugins.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -162,18 +162,17 @@ function _getModuleResolutionPlugins(config) {
162162
function _getProposalDecoratorsAndClassPlugins(config) {
163163
if (!config.shouldIgnoreDecoratorAndClassPlugins) {
164164
return [
165-
/**
166-
* Required for apps to use `@ember/template-compliation`
167-
* for transforming templates from babel-plugin-ember-template-compilation
168-
* which shipped in ember-cli-htmlbars 6.2
169-
*
170-
* Normally this plugin wouldn't be required because the feature has shipped
171-
* in all browsers, but because we have really old plugins, they do not
172-
* support parsing the static block syntax, so we need to compile it away
173-
* when using plugin-proposal-class-properties, which is required
174-
* when using non-spec decorators.
175-
*/
176-
"@babel/plugin-transform-class-static-block",
165+
/**
166+
* Required for apps to use `@ember/template-compliation`
167+
* for transforming templates from babel-plugin-ember-template-compilation
168+
* which shipped in ember-cli-htmlbars 6.2
169+
*
170+
* Normally this plugin wouldn't be required because the feature has shipped
171+
* in all browsers, but because we have legacy decorators, and
172+
* legacy decorators do not support parsing the static block syntax,
173+
* we need to compile it away.
174+
*/
175+
["@babel/plugin-transform-class-static-block"],
177176
["@babel/plugin-proposal-decorators", { legacy: true }],
178177
["@babel/plugin-proposal-class-properties"],
179178
];

0 commit comments

Comments
 (0)