- Fix: Add images (and references) for fallback (#135)
- Fix (canvg): blur export fix - i18n (Chinese): A few fixes (#135) - Optimize: Further image optimizing - Refactoring: Avoid custom JS substitution syntax - Refactoring: Reorder default extension list
This commit is contained in:
@@ -14,8 +14,19 @@ const plugins = [
|
||||
},
|
||||
{
|
||||
match: /svgedit-config-es\.js/,
|
||||
test: '// <CONDITIONAL-ADD>: ', // Sets `svgEditor` global for extensions/locales
|
||||
replace: ''
|
||||
test: "import svgEditor from './editor/svg-editor.js';", // Sets `svgEditor` global for extensions/locales
|
||||
replace: `import svgEditor from './editor/svg-editor.js';
|
||||
window.svgEditor = svgEditor;
|
||||
window.svgEditor.modules = false;
|
||||
`
|
||||
},
|
||||
{
|
||||
match: /xdomain-svgedit-config-es\.js/,
|
||||
test: "import svgEditor from './svg-editor.js';",
|
||||
replace: `import svgEditor from './svg-editor.js';
|
||||
window.svgEditor = svgEditor;
|
||||
window.svgEditor.modules = false;
|
||||
`
|
||||
}
|
||||
]
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user