Conexio amb la api
This commit is contained in:
parent
207c0ba819
commit
b12369cb47
48513 changed files with 7391639 additions and 7 deletions
14
node_modules/webpack-dev-server/client/utils/sendMessage.js
generated
vendored
Executable file
14
node_modules/webpack-dev-server/client/utils/sendMessage.js
generated
vendored
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
/* global __resourceQuery WorkerGlobalScope self */
|
||||
// Send messages to the outside, so plugins can consume it.
|
||||
|
||||
function sendMsg(type, data) {
|
||||
if (typeof self !== 'undefined' && (typeof WorkerGlobalScope === 'undefined' || !(self instanceof WorkerGlobalScope))) {
|
||||
self.postMessage({
|
||||
type: "webpack".concat(type),
|
||||
data: data
|
||||
}, '*');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = sendMsg;
|
||||
Loading…
Add table
Add a link
Reference in a new issue