Merge branch 'sidv/esbuildFail' into sidv/webpackBabelRemoval

* sidv/esbuildFail:
  Update mermaid version
  Fix ports
  Fix mjs resolution
  Fix import errors
  fix: conflict
This commit is contained in:
Sidharth Vinod
2022-09-20 21:31:42 +05:30
6 changed files with 66 additions and 43 deletions

View File

@@ -17,7 +17,7 @@ const buildOptions = (override = {}) => {
globalName: 'mermaid',
platform: 'browser',
tsconfig: 'tsconfig.json',
resolveExtensions: ['.ts', '.js', '.json', '.jison'],
resolveExtensions: ['.ts', '.js', '.mjs', '.json', '.jison'],
external: ['require', 'fs', 'path'],
outdir: 'dist',
plugins: [jisonPlugin],
@@ -83,6 +83,9 @@ exports.iifeBuild = (override = { minify: true }) => {
return buildOptions({
entryPoints: getEntryPoints(override.minify ? '.min' : ''),
format: 'iife',
footer: {
js: 'mermaid = mermaid.default;',
},
...override,
});
};