make Editor.js the entry point

This commit is contained in:
JFH
2021-08-01 23:46:51 +02:00
parent 3febd28b89
commit 8644836f4e
3 changed files with 28 additions and 147 deletions

View File

@@ -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;'
}
],