mirror of
https://github.com/coder/code-server.git
synced 2025-07-30 05:22:04 +08:00
Fix loading within the CLI (#27)
* Fix loading within the CLI * Remove app * Remove promise handle * Fix requested changes
This commit is contained in:
@ -20,6 +20,17 @@ module.exports = merge({
|
||||
]
|
||||
}),
|
||||
},
|
||||
{
|
||||
test: /node\-pty\/lib\/index\.js/,
|
||||
loader: StringReplacePlugin.replace({
|
||||
replacements: [
|
||||
{
|
||||
pattern: /exports\.native.*;/,
|
||||
replacement: () => "exports.native = null;",
|
||||
}
|
||||
]
|
||||
}),
|
||||
},
|
||||
],
|
||||
},
|
||||
output: {
|
||||
@ -36,7 +47,7 @@ module.exports = merge({
|
||||
__dirname: false,
|
||||
setImmediate: false
|
||||
},
|
||||
externals: ["node-pty", "spdlog"],
|
||||
externals: ["spdlog", "tslib"],
|
||||
entry: "./packages/server/src/cli.ts",
|
||||
target: "node",
|
||||
plugins: [
|
||||
|
Reference in New Issue
Block a user