Skip to content

Commit

Permalink
fix(tests): Fix commonjs cancelable-promise module error
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Apr 15, 2024
1 parent 00ed78e commit 0a883bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ export default defineConfig((env) => {
classNameStrategy: 'non-scoped',
},
},
// Fix unresolvable .css extension for ssr
server: {
deps: {
inline: [/@nextcloud\/vue/],
inline: [
/@nextcloud\/vue/, // Fix unresolvable .css extension for ssr
/@nextcloud\/files/, // Fix CommonJS cancelable-promise not supporting named exports
],
},
},
},
Expand Down

0 comments on commit 0a883bd

Please sign in to comment.