You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To solve the problem "global is not defined "
`import { defineConfig, UserConfigExport, ConfigEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path';
import polyfillNode from 'rollup-plugin-polyfill-node'
export default defineConfig({
plugins: [
vue(),
polyfillNode()
],
optimizeDeps: {
exclude: ['dragula'] // <- modules that needs shimming have to be excluded from dep optimization
}
})`
and then throw Uncaught ReferenceError: process is not defined, problem .
so How can I fix it? thanks!
The text was updated successfully, but these errors were encountered:
If you are sure this is a bug or documentation issue, please take the time to refile this issue using the issue template.
Hey there, thanks for opening an issue - Unfortunately you missed (or may have disregarded) the message about issue templates being required. Because our issue template was removed, we assume that this is a support request, and that's not something we offer here. Also, if you refile, please don't ignore Issue sections. They're in the template because they're useful to the maintainers of this project.
To solve the problem "global is not defined "
`import { defineConfig, UserConfigExport, ConfigEnv } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path';
import polyfillNode from 'rollup-plugin-polyfill-node'
export default defineConfig({
plugins: [
vue(),
polyfillNode()
],
optimizeDeps: {
exclude: ['dragula'] // <- modules that needs shimming have to be excluded from dep optimization
}
})`
and then throw Uncaught ReferenceError: process is not defined, problem .
so How can I fix it? thanks!
The text was updated successfully, but these errors were encountered: