unplugin-preprocessor-directives icon indicating copy to clipboard operation
unplugin-preprocessor-directives copied to clipboard

Generic plugins should not require specific dependencies

Open wsafight opened this issue 11 months ago • 0 comments

error:

error   Failed to load file with jiti: xxxx/xxxxx/rsbuild.config.ts
error   Failed to start dev server.
error   Cannot find module 'vite'

The vite framework is required in the src/core/context/index.ts file, but my project uses another packaging framework. It needs to be replaced with common code.

import type { Logger } from 'vite'
import { createFilter, createLogger, loadEnv } from 'vite'

wsafight avatar Dec 30 '24 06:12 wsafight