Skip to content

Commit

Permalink
Merge pull request #4281 from mermaid-js/sidv/addUMD
Browse files Browse the repository at this point in the history
Add UMD build Back
  • Loading branch information
sidharthv96 authored Apr 23, 2023
2 parents f018ca3 + 5625149 commit 04305bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .vite/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ export const getBuildConfig = ({ minify, core, watch, entryName }: BuildOptions)
sourcemap,
entryFileNames: `${name}.esm${minify ? '.min' : ''}.mjs`,
},
{
name,
format: 'umd',
sourcemap: true,
entryFileNames: `${name}${minify ? '.min' : ''}.js`,
},
];

if (core) {
Expand Down
7 changes: 5 additions & 2 deletions packages/mermaid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@
"vitepress-plugin-search": "^1.0.4-alpha.20"
},
"files": [
"dist",
"dist/",
"README.md"
],
"sideEffects": false
"sideEffects": false,
"publishConfig": {
"access": "public"
}
}

0 comments on commit 04305bd

Please sign in to comment.