mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 07:43:43 +08:00
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:
parent
82c62fe44f
commit
2995da2625
|
@ -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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user