Skip to content

Commit 7879051

Browse files
authored
fix: require.resolve is not a function (#2)
1 parent b27bc4b commit 7879051

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import { createRequire } from 'node:module';
12
import type { RsbuildPlugin } from '@rsbuild/core';
23
import { modifyBabelLoaderOptions } from '@rsbuild/plugin-babel';
34

5+
const require = createRequire(import.meta.url);
6+
47
type VueJSXPresetOptions = {
58
/**
69
* Whether to enable the Composition API in Vue.js JSX.

0 commit comments

Comments
 (0)