Skip to content

Commit

Permalink
Use proper syntax to check if terser is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin-fb committed Jan 14, 2022
1 parent ba31ffc commit 4aba745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
}
};

if (this.terserVersion.satisfies('>= 0.0.0')) {
if (this.terserVersion.exists()) {
target.options = merge(target.options, { 'ember-cli-terser': { terser: options.options } });
this.enableCompile = target.options['ember-cli-terser'].enabled;
} else if (this.uglifyVersion.satisfies('>= 2.0.0')) {
Expand Down

0 comments on commit 4aba745

Please sign in to comment.