Skip to content

Commit

Permalink
fix: require.resolve is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Sep 3, 2024
1 parent b27bc4b commit f7e091a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit f7e091a

Please sign in to comment.