You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A major ES6 Module refactoring for our source is on the way, (complete) but a few dependencies are not yet available as ES6 modules (at least without Rollup)
sinon (Just needs npm bump now) and sinon-test (For testing)
Once import() is widely available, we could avoid loading them via script tag and allow them to simply export an object without needing to import svg-editor.js and call addExtensions. Currently added an importModule polyfill (and importScript fallback).
Consider, in place of the embedded API, exporting a module which added all dependencies, including jQuery and the default HTML. Have to weigh this with the cost of adding all the default HTML dynamically and whether the styling could support placement elsewhere in the flow of the document. One option might be a syntax which supported Server-side Rendering (so as to minimize initial DOM processing) or to allow pre-compilation to static HTML.
See about spinning off some of the components of the project into their own ES6 Module-friendly npm module
The text was updated successfully, but these errors were encountered:
A major ES6 Module refactoring for our source is
on the way,(complete) but a few dependencies are not yet available as ES6 modules (at least without Rollup)import()
is widely available, we could avoid loading them via script tag and allow them to simply export an object without needing to importsvg-editor.js
and calladdExtensions
. Currently added animportModule
polyfill (andimportScript
fallback).The text was updated successfully, but these errors were encountered: