From c990c771d80c58e86e713b35d2eb4f29b23e2027 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Thu, 31 Jan 2019 11:32:05 -0500 Subject: [PATCH] switch to mjs to align with Svelte --- .gitignore | 2 +- rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,