mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Add export map, use mjs extension
This commit is contained in:
parent
cac354caa9
commit
b500a312b6
@ -3,7 +3,14 @@
|
||||
"version": "8.13.2",
|
||||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",
|
||||
"main": "dist/mermaid.core.js",
|
||||
"module": "dist/mermaid.esm.min.js",
|
||||
"module": "dist/mermaid.esm.min.mjs",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./dist/mermaid.core.js",
|
||||
"import": "./dist/mermaid.esm.min.mjs"
|
||||
},
|
||||
"./*": "./*"
|
||||
},
|
||||
"keywords": [
|
||||
"diagram",
|
||||
"markdown",
|
||||
|
@ -12,6 +12,6 @@ esmConfig.output.library = {
|
||||
esmConfig.experiments = {
|
||||
outputModule: true,
|
||||
};
|
||||
esmConfig.output.filename = '[name].esm.min.js';
|
||||
esmConfig.output.filename = '[name].esm.min.mjs';
|
||||
|
||||
export default [umdConfig, esmConfig];
|
||||
|
Loading…
x
Reference in New Issue
Block a user