diff --git a/.gitignore b/.gitignore index 58cad32..0a43809 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ sapper runtime.js dist !rollup.config.js -templates/*.js \ No newline at end of file +templates/*.mjs \ No newline at end of file diff --git a/rollup.config.js b/rollup.config.js index b8c76fe..27a4cf2 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -16,7 +16,7 @@ function template(kind, external, target) { return { input: `templates/src/${kind}/index.ts`, output: { - file: `templates/${kind}.js`, + file: `templates/${kind}.mjs`, format: 'es' }, external,