preact: update dependencies

This commit is contained in:
Shuanglei Tao
2019-05-03 23:12:13 +08:00
parent bffedd4d75
commit 2b3075698d
4 changed files with 2987 additions and 2466 deletions

View File

@@ -10,15 +10,16 @@
"author": "Shuanglei Tao <tsl0922@gmail.com>",
"license": "MIT",
"scripts": {
"start": "preact watch"
"start": "preact watch",
"build": "preact build --no-service-worker --no-prerender"
},
"devDependencies": {
"preact-cli": "^2.1.0"
"preact-cli": "^2.2.1"
},
"dependencies": {
"decko": "^1.2.0",
"fast-text-encoding": "^1.0.0",
"preact": "^8.2.7",
"xterm": "^3.3.0"
"preact": "^8.4.2",
"xterm": "^3.12.2"
}
}

View File

@@ -7,7 +7,7 @@
* @param {WebpackConfigHelpers} helpers - object with useful helpers when working with config.
**/
export default function (config, env, helpers) {
const { devServer } = config;
const { devServer, plugins } = config;
if (devServer) {
devServer.proxy = {
'/ws': {

View File

@@ -7,8 +7,7 @@ require('fast-text-encoding');
export default class Terminal extends Component {
componentDidMount() {
TERMINAL.applyAddon(require('xterm/dist/addons/fit'));
TERMINAL.applyAddon(require('xterm/dist/addons/winptyCompat'));
TERMINAL.applyAddon(require('xterm/lib/addons/fit/fit'));
TERMINAL.applyAddon(require('./overlay'));
this.url = (window.location.protocol === 'https:' ? 'wss://' : 'ws://')
@@ -93,7 +92,6 @@ export default class Terminal extends Component {
terminal.on('resize', this.onTerminalResize);
terminal.open(this.container, true);
terminal.winptyCompatInit();
terminal.fit();
terminal.focus();
}

File diff suppressed because it is too large Load Diff