File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import fs from 'fs'
33import { fileURLToPath } from 'url'
44
55import webpack from 'webpack'
6- import WebSocket from 'ws'
6+ import { WebSocketServer , WebSocket } from 'ws'
77import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'
88import MiniCssExtractPlugin from 'mini-css-extract-plugin'
99import 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
You can’t perform that action at this time.
0 commit comments