Skip to content

Commit

Permalink
add comment for tests to replace with extra vite plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Dec 3, 2024
1 parent 6c41d72 commit a92ae93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/app-template/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
plugins: [
classicEmberSupport(),
ember(),

// extra plugins here
babel({
babelHelpers: "runtime",
extensions,
Expand Down
6 changes: 2 additions & 4 deletions tests/scenarios/v2-addon-dev-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit a92ae93

Please sign in to comment.