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
按照如下文件配置后,插件没有生效,commonjs代码没有被转成es代码,所以报错:The requested module '/_fusion/lib/index.js' does not provide an export named 'Affix'
import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { viteCommonjs } from '@originjs/vite-plugin-commonjs' import * as path from 'path'; const projectRootDir = path.resolve(__dirname); // https://vitejs.dev/config/ export default defineConfig({ resolve: { alias: [ { find: '@', replacement: path.resolve(projectRootDir, 'src') }, { find: '@fusion', replacement: path.resolve(projectRootDir, '_fusion'), }, { find: /^~(.*)$/, replacement: '$1', } ] }, plugins: [ viteCommonjs(), react()], })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Versions
按照如下文件配置后,插件没有生效,commonjs代码没有被转成es代码,所以报错:The requested module '/_fusion/lib/index.js' does not provide an export named 'Affix'
The text was updated successfully, but these errors were encountered: