Skip to content

Commit 13eece1

Browse files
committed
fixed web demo deployment
1 parent e02e8b5 commit 13eece1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

esbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const buildOptsWeb: BuildOptions = {
55
outfile: './dist/web/NodeFlow.js',
66
platform: 'browser',
77
target: ['esNext'],
8-
// format: 'cjs',
8+
format: 'esm',
99
bundle: true,
1010
sourcemap: true,
1111
minify: true,

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
}
2828
</style>
2929

30-
<script src="./dist/index.mjs" type="module"></script>
30+
<script src="./dist/web/NodeFlow.js" type="module"></script>
3131
</head>
3232

3333
<body>
3434
<canvas id="canvas"></canvas>
3535
<script type="module">
36-
import { Theme, FlowNode, NodeFlowGraph, FlowNote } from "./dist/index.mjs";
36+
import { Theme, FlowNode, NodeFlowGraph, FlowNote } from "./dist/web/NodeFlow.js";
3737

3838
const canvas = document.getElementById("canvas");
3939
Theme.FontFamily = "Source Code Pro";

0 commit comments

Comments
 (0)