From 4f13791f718c045ef17d9f9ce0093520b48f1ef9 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Sat, 5 Oct 2024 10:38:57 +0200 Subject: [PATCH] Use ES6 module output For compatibility with top-level await in CX NPM package --- next.html | 2 +- rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/next.html b/next.html index 736b31a..7a1bffa 100644 --- a/next.html +++ b/next.html @@ -33,7 +33,7 @@ - + diff --git a/rollup.config.js b/rollup.config.js index ae962dd..9f1a028 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -14,7 +14,7 @@ export default { input: 'src/main.js', output: { sourcemap: true, - format: 'iife', + format: 'esm', name: 'app', file: 'build/bundle.js' },