use standard polyfills (only tested with esm)
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user