Skip to content

Commit 989fc8d

Browse files
committed
chore: sync files from nfp-template
1 parent 2610aa1 commit 989fc8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nfp-template-drawer",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"type": "module",
55
"plugin": {
66
"id": "template-drawer",

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs'
33
import { fileURLToPath } from 'url'
44

55
import webpack from 'webpack'
6-
import WebSocket from 'ws'
6+
import { WebSocketServer, WebSocket } from 'ws'
77
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'
88
import MiniCssExtractPlugin from 'mini-css-extract-plugin'
99
import TerserPlugin from 'terser-webpack-plugin'
@@ -20,7 +20,7 @@ class CompilationNotifierPlugin {
2020

2121
compiler.hooks.compile.tap('CompilationNotifierPlugin', () => {
2222
if (wss) return
23-
wss = new WebSocket.Server({ port: packageJson.plugin.port.debug })
23+
wss = new WebSocketServer({ port: packageJson.plugin.port.debug })
2424
console.log('\nCompilation NotifierPlugin Websocket Started.\n')
2525
})
2626

0 commit comments

Comments
 (0)