diff --git a/src/index.ts b/src/index.ts index a0172cb..2c45557 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,9 @@ +import { createRequire } from 'node:module'; import type { RsbuildPlugin } from '@rsbuild/core'; import { modifyBabelLoaderOptions } from '@rsbuild/plugin-babel'; +const require = createRequire(import.meta.url); + type VueJSXPresetOptions = { /** * Whether to enable the Composition API in Vue.js JSX.