Skip to content

Commit

Permalink
Update .vite/build.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Alois Klink <alois@aloisklink.com>
  • Loading branch information
sidharthv96 and aloisklink committed Nov 21, 2022
1 parent de8ce77 commit b75ce7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .vite/build.ts
Expand Up @@ -80,6 +80,8 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions)
);
// Core build is used to generate file without bundled dependencies.
// This is used by downstream projects to bundle dependencies themselves.
// Ignore dependencies and any dependencies of dependencies
// Adapted from the RegEx used by `rollup-plugin-node`
external.push(new RegExp('^(?:' + Object.keys(dependencies).join('|') + ')(?:/.+)?$'));
// This needs to be an array. Otherwise vite will build esm & umd with same name and overwrite esm with umd.
output = [
Expand Down

0 comments on commit b75ce7a

Please sign in to comment.