Use ES6 module output
For compatibility with top-level await in CX NPM package
This commit is contained in:
parent
fdf57ef9b0
commit
4f13791f71
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@
|
|||
<!-- Serviceworker script that adds the COI and CORS headers to the response headers in cases where the server does not support it. -->
|
||||
<script src="serviceWorker.js"></script>
|
||||
<script src="network.js"></script>
|
||||
<script defer src='/build/bundle.js'></script>
|
||||
<script defer src='/build/bundle.js' type='module'></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -14,7 +14,7 @@ export default {
|
|||
input: 'src/main.js',
|
||||
output: {
|
||||
sourcemap: true,
|
||||
format: 'iife',
|
||||
format: 'esm',
|
||||
name: 'app',
|
||||
file: 'build/bundle.js'
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue