From 8644836f4e5824756b3a3ed5e876a78b011a0a9a Mon Sep 17 00:00:00 2001 From: JFH <20402845+jfhenon@users.noreply.github.com> Date: Sun, 1 Aug 2021 23:46:51 +0200 Subject: [PATCH] make Editor.js the entry point --- rollup.config.js | 6 +- src/editor/index.html | 27 +++++++- src/editor/index.js | 142 ------------------------------------------ 3 files changed, 28 insertions(+), 147 deletions(-) delete mode 100644 src/editor/index.js diff --git a/rollup.config.js b/rollup.config.js index 6e59cd48..acede78e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -37,19 +37,19 @@ rimraf('./dist', () => console.info('recreating dist')); // config for svgedit core module const config = [ { - input: [ 'src/editor/index.js' ], + input: [ 'src/editor/Editor.js' ], output: [ { format: 'es', inlineDynamicImports: true, sourcemap: true, - file: 'dist/editor/index.js' + file: 'dist/editor/Editor.js' }, { format: 'es', inlineDynamicImports: true, sourcemap: true, - file: 'dist/editor/xdomain-index.js', + file: 'dist/editor/xdomain-Editor.js', intro: 'const XDOMAIN = true;' } ], diff --git a/src/editor/index.html b/src/editor/index.html index 1d757f44..0958477e 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -22,13 +22,36 @@ - +