Skip to content

Commit

Permalink
Merge pull request #1704 from embroider-build/optimise-deps-extensions
Browse files Browse the repository at this point in the history
add correct extensions to optimizeDeps() config
  • Loading branch information
mansona authored Dec 6, 2023
2 parents 65ea799 + e0ee497 commit 2cefe80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/vite/src/optimize-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface OptimizeDeps {
export function optimizeDeps(): OptimizeDeps {
return {
exclude: ['@embroider/macros'],
extensions: ['.hbs', '.gjs'],
esbuildOptions: {
plugins: [esBuildResolver()],
},
Expand Down
5 changes: 4 additions & 1 deletion packages/vite/tests/optimize-deps.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ describe('optimizeDeps', function () {

expect(actual).toMatchInlineSnapshot(
{
exclude: ['@embroider/macros'],
esbuildOptions: {
plugins: [expect.any(Object)],
},
Expand All @@ -21,6 +20,10 @@ describe('optimizeDeps', function () {
"exclude": [
"@embroider/macros",
],
"extensions": [
".hbs",
".gjs",
],
}
`
);
Expand Down

0 comments on commit 2cefe80

Please sign in to comment.