From 33ce2304c923fbe30a25d2ce83157e71d9e74622 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 6 May 2020 17:53:16 -0400 Subject: [PATCH] Ensure test selector stripping works for inline template compilation Prior to this, the `registry.add('htmlbars-ast-plugin', ...)` invocation in `index.js` runs _after_ all of the `htmlbars-ast-plugins` are read and registered for inline JS/TS compilation. It is still before stand alone templates are ran (and that is why it works for `*.hbs` files that are not colocation). This ensures that `ember-test-selectors` runs _before_ `ember-cli-htmlbars` / `ember-cli-htmlbars-inline-precompile (so that we can ensure that `ember-test-selectors` included runs, and therefore the `htmlbars-ast-plugin` is registered before it is needed for inline template compilation). --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 02d1b309..ff3cdc56 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,10 @@ } }, "ember-addon": { + "before": [ + "ember-cli-htmlbars", + "ember-cli-htmlbars-inline-precompile" + ], "configPath": "tests/dummy/config", "versionCompatibility": { "ember": ">=3"