mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
fix: package BUG on windows.
This commit is contained in:
parent
03528a8de4
commit
fb362b26a8
@ -1,7 +1,7 @@
|
||||
/**
|
||||
* 参考链接: https://github.com/vitejs/vite/blob/master/src/node/config.ts
|
||||
*/
|
||||
import { join } from 'path'
|
||||
import { join, sep } from 'path'
|
||||
import { UserConfig } from 'vite'
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
@ -45,7 +45,7 @@ const config: UserConfig = {
|
||||
{
|
||||
name: '@rollup/plugin-cjs2esm',
|
||||
transform(code, filename) {
|
||||
if (filename.includes('/node_modules/')) {
|
||||
if (filename.includes(`${sep}node_modules${sep}`)) {
|
||||
return code
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user