You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
380 B
8 lines
380 B
import { fileURLToPath } from 'url';
|
|
import { createRequire } from 'module';
|
|
const require = createRequire(fileURLToPath(import.meta.url));
|
|
|
|
// TODO why use require() here? I think we can just `import`
|
|
/** @type {import('./dist/child-loader')} */
|
|
const childLoader = require('./dist/child/child-loader');
|
|
export const { resolve, load, getFormat, transformSource } = childLoader;
|
|
|