DEV: add "load-morphlex" wrapper... (#26514)

* DEV: add "load-morphlex" wrapper...

... so plugins can import and use morphlex.


Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:
Régis Hanol 2024-04-04 15:30:56 +02:00 committed by GitHub
parent 82c62fe44f
commit 2995da2625
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,7 @@
/*
Plugins & themes are unable to async-import npm modules directly.
This wrapper provides them with a way to use morphlex, while keeping the `import()` in core's codebase.
*/
export default async function loadMorphlex() {
return await import("morphlex");
}