I've been unable to use the plugin in Vite 3. Here's the error log. Thanks in advance!
failed to load config from (rootDir)/vite.config.js
error when starting dev server:
TypeError: commonjs is not a function
at file://(rootDir)/vite.config.js.timestamp-1662774209726.mjs:6:22
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:409:24)
at async loadConfigFromBundledFile (file:///(rootDir)i/node_modules/vite/dist/node/chunks/dep-665b0112.js:63419:21)
at async loadConfigFromFile (file:///(rootDir)i/node_modules/vite/dist/node/chunks/dep-665b0112.js:63305:28)
at async resolveConfig (file:///(rootDir)/node_modules/vite/dist/node/chunks/dep-665b0112.js:62904:28)
at async createServer (file://(rootDir)/node_modules/vite/dist/node/chunks/dep-665b0112.js:61978:20)
at async CAC.<anonymous> (file://(rootDir)/node_modules/vite/dist/node/cli.js:700:24)
I've been unable to use the plugin in Vite 3. Here's the error log. Thanks in advance!
Here's my config: