From 4aba745de1d87a4dbcd4b7157188b7839448624b Mon Sep 17 00:00:00 2001 From: Calvin Lough Date: Fri, 14 Jan 2022 13:18:40 -0700 Subject: [PATCH] Use proper syntax to check if terser is installed --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0a6c5fd..5a76825 100644 --- a/index.js +++ b/index.js @@ -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')) {