Skip to content

Commit

Permalink
deliver esm
Browse files Browse the repository at this point in the history
  • Loading branch information
davidenke committed Feb 20, 2023
1 parent 3849c5a commit 7e9adff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { port, serve } = values;
const options: BuildOptions = {
entryPoints: ['src/index.ts', 'src/index.html', 'src/mocks/mock-1.jpg', 'src/mocks/mock-2.png'],
outdir: 'dist',
format: 'iife',
format: 'esm',
bundle: true,
sourcemap: true,
minify: true,
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
width: 100%;
}
</style>
<script src="index.js"></script>
<script type="module" src="index.js"></script>
</head>
<body>
<main>
Expand Down

0 comments on commit 7e9adff

Please sign in to comment.