mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-10 06:54:30 +08:00
fix: 编辑器打不开
This commit is contained in:
1 parent
da05785694
commit
f796e93240
14 files changed
+97
-66
No files matched your search
+17
-3
@@ -17,6 +17,7 @@ import { WebSocket, WebSocketServer } from 'ws';
|
||||
import chokidar from 'chokidar';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import json from '@rollup/plugin-json';
|
||||
import replace from '@rollup/plugin-replace';
|
||||
|
||||
const base = './public';
|
||||
|
||||
@@ -150,10 +151,23 @@ async function getEsmFile(
|
||||
exclude: '**/node_modules/**'
|
||||
},
|
||||
plugins: [
|
||||
typescript({ sourceMap: true }),
|
||||
nodeResolve(),
|
||||
typescript({
|
||||
sourceMap: true,
|
||||
noCheck: true,
|
||||
paths: {
|
||||
'@motajs/*': ['packages/*/src'],
|
||||
'@user/*': ['packages-user/*/src']
|
||||
}
|
||||
}),
|
||||
nodeResolve({
|
||||
browser: true,
|
||||
preferBuiltins: false
|
||||
}),
|
||||
commonjs(),
|
||||
json()
|
||||
json(),
|
||||
replace({
|
||||
'import.meta.env.DEV': 'false'
|
||||
})
|
||||
],
|
||||
onwarn() {}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user