mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Merge pull request #26712 from rynclark/webpack-hot-client-valid-targets
[webpack-hot-client] update version to v4, add tests for validTarget
This commit is contained in:
2
types/webpack-hot-client/index.d.ts
vendored
2
types/webpack-hot-client/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for webpack-hot-client 3.0
|
||||
// Type definitions for webpack-hot-client 4.0
|
||||
// Project: https://github.com/webpack-contrib/webpack-hot-client
|
||||
// Definitions by: Ryan Clark <https://github.com/rynclark>
|
||||
// ZSkycat <https://github.com/ZSkycat>
|
||||
|
||||
@@ -4,3 +4,5 @@ import hot = require('webpack-hot-client');
|
||||
const compiler = webpack();
|
||||
|
||||
hot(compiler, { logLevel: 'info', reload: false });
|
||||
|
||||
hot(compiler, { logLevel: 'info', reload: false, validTargets: ['web', 'node'] });
|
||||
|
||||
Reference in New Issue
Block a user