use standard polyfills (only tested with esm)

This commit is contained in:
jfh
2020-08-09 18:33:17 +02:00
parent ff98330ddf
commit 842f59b6c1
21 changed files with 57243 additions and 3282 deletions

View File

@@ -23,19 +23,9 @@
<script src="jquery.min.js"></script>
<!--{endif}-->
<!-- Lacking browser support -->
<script nomodule="" src="redirect-on-no-module-support.js"></script>
<script type="module" src="redirect-on-lacking-support.js"></script>
<!-- As yet no ES6 Module support -->
<script src="jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
<!-- Browser polyfills -->
<script src="../external/dom-polyfill/dom-polyfill.js"></script>
<!-- ES6+ polyfills (Babel) -->
<script src="../external/core-js-bundle/minified.js"></script>
<script src="../external/regenerator-runtime/runtime.js"></script>
<!-- If you do not wish to add extensions by URL, you can add calls
within the following file to svgEditor.setConfig -->

View File

@@ -18,6 +18,10 @@ For default config and extensions (and available options) available to
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
*/
// eslint-disable-next-line node/file-extension-in-import
import 'core-js/stable';
// eslint-disable-next-line node/file-extension-in-import
import 'regenerator-runtime/runtime';
import svgEditor from './svgedit.js';
// URL OVERRIDE CONFIG