blob: 5fb90ad0b0224aa1e185820f33e90924f76cfeb6 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
// This file should be imported as `#import-plugin`
import type * as unified from 'unified';
// In the browser, we can try to do a plain import
export async function importPlugin(p: string): Promise<unified.Plugin> {
const importResult = await import(p);
return importResult.default;
}
|