Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 | import { fileURLToPath } from 'node:url'; import type { rspack } from '@esmx/rspack'; const FIX_ESM = `api.install(require('vue').default)`; export default function (this: rspack.LoaderContext, text: string) { return text.replaceAll(`api.install(require('vue'))`, FIX_ESM); } export const vue2DevHmrLoader = fileURLToPath( import.meta.resolve(import.meta.url) ); |