Skip to content

Commit

Permalink
optimizeDeps: reexport from index and use it for test app
Browse files Browse the repository at this point in the history
  • Loading branch information
lolmaus committed Oct 9, 2023
1 parent 58a2603 commit 2f5317f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/vite/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export * from './src/resolver.js';
export * from './src/hbs.js';
export * from './src/scripts.js';
export * from './src/template-tag.js';
export * from './src/addons.js';
export * from './src/addons.js';
export * from './src/optimize-deps.js';
3 changes: 2 additions & 1 deletion packages/vite/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export * from './src/resolver.js';
export * from './src/hbs.js';
export * from './src/scripts.js';
export * from './src/template-tag.js';
export * from './src/addons.js';
export * from './src/addons.js';
export * from './src/optimize-deps.js';
13 changes: 9 additions & 4 deletions tests/vite-app/vite.config.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { defineConfig } from "vite";
import { resolver, hbs, scripts, templateTag, addons } from "@embroider/vite";
import {
resolver,
hbs,
scripts,
templateTag,
addons,
optimizeDeps,
} from "@embroider/vite";
import { resolve } from "path";
import { babel } from "@rollup/plugin-babel";

Expand All @@ -23,9 +30,7 @@ export default defineConfig({
extensions: [".gjs", ".js", ".hbs"],
}),
],
optimizeDeps: {
exclude: addons(__dirname),
},
optimizeDeps: optimizeDeps(),
server: {
watch: {
ignored: ["!**/node_modules/.embroider/rewritten-app/**"],
Expand Down

0 comments on commit 2f5317f

Please sign in to comment.