mirror of
https://github.com/penpot/penpot.git
synced 2025-06-24 23:16:58 +02:00
✨ Use dynamic import for wasm module
This commit is contained in:
parent
cc7ed497e8
commit
884ceb052b
9 changed files with 54 additions and 44 deletions
5
frontend/resources/polyfills/dynamicImport.js
Normal file
5
frontend/resources/polyfills/dynamicImport.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
if (!('dynamicImport' in window)) {
|
||||
window.dynamicImport = function(uri) {
|
||||
return import(uri);
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue