Skip to content

Commit

Permalink
fix: fix sha import
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Klesse committed Dec 20, 2024
1 parent f9ef38f commit b5d8927
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,15 @@ export default defineNuxtModule<ModuleOptions>({
// TODO: Remove when package fixed with valid ESM exports
nuxt.options.build.transpile.push(({ isServer }) => !isServer && 'gql-query-builder');
}

nuxt.options.build.transpile.push(({ isServer }) => !isServer && 'js-sha256');
// TODO: Remove when package fixed with valid ESM exports
extendViteConfig((config) => {
config.optimizeDeps = config.optimizeDeps || {};
config.optimizeDeps.include = config.optimizeDeps.include || [];
config.optimizeDeps.exclude = config.optimizeDeps.exclude || [];
config.optimizeDeps.include.push('gql-query-builder');
config.optimizeDeps.include.push('js-sha256');
});

nuxt.hook('nitro:config', (nitro) => {
Expand Down

0 comments on commit b5d8927

Please sign in to comment.