We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
配置vite方式
optimizeDeps.esbuildOptions = { plugins: [ // lessLoader() esbuildCommonjs(['testA']), ], }
testA代码
const Form = require("testB");
testB中输出方式
export const Form = () => {} export default function () { return '' }
会报错找不到f2
https://github.com/originjs/vite-plugins/blob/main/packages/vite-plugin-commonjs/src/lib.ts#L37
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Versions
Reproduction
配置vite方式
testA代码
testB中输出方式
会报错找不到f2
https://github.com/originjs/vite-plugins/blob/main/packages/vite-plugin-commonjs/src/lib.ts#L37
The text was updated successfully, but these errors were encountered: