From a92ae93290b77953e186444c11736b3345f78e35 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Tue, 3 Dec 2024 15:33:28 +0000 Subject: [PATCH] add comment for tests to replace with extra vite plugins --- tests/app-template/vite.config.mjs | 2 +- tests/scenarios/v2-addon-dev-test.ts | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/app-template/vite.config.mjs b/tests/app-template/vite.config.mjs index dbf452687..b745b73b2 100644 --- a/tests/app-template/vite.config.mjs +++ b/tests/app-template/vite.config.mjs @@ -6,7 +6,7 @@ export default defineConfig({ plugins: [ classicEmberSupport(), ember(), - + // extra plugins here babel({ babelHelpers: "runtime", extensions, diff --git a/tests/scenarios/v2-addon-dev-test.ts b/tests/scenarios/v2-addon-dev-test.ts index eefc13c9b..36ae7eb24 100644 --- a/tests/scenarios/v2-addon-dev-test.ts +++ b/tests/scenarios/v2-addon-dev-test.ts @@ -372,10 +372,8 @@ appScenarios }); project.files['vite.config.mjs'] = (project.files['vite.config.mjs'] as string).replace( - 'contentFor(),', - ` - contentFor(), - { + '// extra plugins here', + `{ name: "xyz-handler", transform(code, id) { if (id.endsWith('.xyz')) {