@remotion/bundler 3.0.0-lambda.99 → 3.0.0-wrapped.209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/env-variables.d.ts +2 -0
- package/dist/env-variables.d.ts.map +1 -0
- package/dist/env-variables.js +5 -0
- package/dist/env-variables.js.map +1 -0
- package/dist/fast-refresh/error-overlay/entry-basic.d.ts +3 -0
- package/dist/fast-refresh/error-overlay/entry-basic.d.ts.map +1 -0
- package/dist/fast-refresh/error-overlay/entry-basic.js +27 -0
- package/dist/fast-refresh/error-overlay/entry-basic.js.map +1 -0
- package/dist/fast-refresh/error-overlay/entry-devserver.d.ts +8 -0
- package/dist/fast-refresh/error-overlay/entry-devserver.d.ts.map +1 -0
- package/dist/fast-refresh/error-overlay/entry-devserver.js +36 -0
- package/dist/fast-refresh/error-overlay/entry-devserver.js.map +1 -0
- package/dist/fast-refresh/error-overlay/index.d.ts +7 -0
- package/dist/fast-refresh/error-overlay/index.d.ts.map +1 -0
- package/dist/fast-refresh/error-overlay/index.js +92 -0
- package/dist/fast-refresh/error-overlay/index.js.map +1 -0
- package/dist/fast-refresh/fast-refresh.d.ts +28 -0
- package/dist/fast-refresh/fast-refresh.d.ts.map +1 -0
- package/dist/fast-refresh/fast-refresh.js +98 -0
- package/dist/fast-refresh/fast-refresh.js.map +1 -0
- package/dist/fast-refresh/helpers.d.ts +32 -0
- package/dist/fast-refresh/helpers.d.ts.map +1 -0
- package/dist/fast-refresh/helpers.js +138 -0
- package/dist/fast-refresh/helpers.js.map +1 -0
- package/dist/fast-refresh/loader.d.ts +26 -0
- package/dist/fast-refresh/loader.d.ts.map +1 -0
- package/dist/fast-refresh/loader.js +106 -0
- package/dist/fast-refresh/loader.js.map +1 -0
- package/dist/fast-refresh/runtime.d.ts +26 -0
- package/dist/fast-refresh/runtime.d.ts.map +1 -0
- package/dist/fast-refresh/runtime.js +52 -0
- package/dist/fast-refresh/runtime.js.map +1 -0
- package/dist/hot-middleware.d.ts +28 -0
- package/dist/hot-middleware.d.ts.map +1 -0
- package/dist/hot-middleware.js +119 -0
- package/dist/hot-middleware.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-variables.d.ts","sourceRoot":"","sources":["../src/env-variables.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-variables.js","sourceRoot":"","sources":["../src/env-variables.ts"],"names":[],"mappings":";;AAAA,uCAAmC;AAEnC,oBAAS,CAAC,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-basic.d.ts","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/entry-basic.ts"],"names":[],"mappings":"AACA,QAAA,MACC,gBAAgB,OAChB,2BAA2B,OAC3B,oBAAoB,KACa,CAAC;AACnC,QAAA,MAAM,oBAAoB,KAAkD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-check
|
|
3
|
+
const { setEditorHandler, startReportingRuntimeErrors, dismissRuntimeErrors, } = require('react-error-overlay');
|
|
4
|
+
const launchEditorEndpoint = require('react-dev-utils/launchEditorEndpoint');
|
|
5
|
+
setEditorHandler((errorLocation) => {
|
|
6
|
+
// Keep this sync with errorOverlayMiddleware.js
|
|
7
|
+
fetch(launchEditorEndpoint +
|
|
8
|
+
'?fileName=' +
|
|
9
|
+
window.encodeURIComponent(errorLocation.fileName) +
|
|
10
|
+
'&lineNumber=' +
|
|
11
|
+
window.encodeURIComponent(errorLocation.lineNumber || 1) +
|
|
12
|
+
'&colNumber=' +
|
|
13
|
+
window.encodeURIComponent(errorLocation.colNumber || 1));
|
|
14
|
+
});
|
|
15
|
+
startReportingRuntimeErrors({
|
|
16
|
+
onError() {
|
|
17
|
+
if (module.hot) {
|
|
18
|
+
module.hot.addStatusHandler((status) => {
|
|
19
|
+
if (status === 'apply') {
|
|
20
|
+
// window.location.reload();
|
|
21
|
+
dismissRuntimeErrors();
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=entry-basic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-basic.js","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/entry-basic.ts"],"names":[],"mappings":";AAAA,YAAY;AACZ,MAAM,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,GACpB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AACnC,MAAM,oBAAoB,GAAG,OAAO,CAAC,sCAAsC,CAAC,CAAC;AAE7E,gBAAgB,CAAC,CAAC,aAAa,EAAE,EAAE;IAClC,gDAAgD;IAChD,KAAK,CACJ,oBAAoB;QACnB,YAAY;QACZ,MAAM,CAAC,kBAAkB,CAAC,aAAa,CAAC,QAAQ,CAAC;QACjD,cAAc;QACd,MAAM,CAAC,kBAAkB,CAAC,aAAa,CAAC,UAAU,IAAI,CAAC,CAAC;QACxD,aAAa;QACb,MAAM,CAAC,kBAAkB,CAAC,aAAa,CAAC,SAAS,IAAI,CAAC,CAAC,CACxD,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,2BAA2B,CAAC;IAC3B,OAAO;QACN,IAAI,MAAM,CAAC,GAAG,EAAE;YACf,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,MAAM,EAAE,EAAE;gBACtC,IAAI,MAAM,KAAK,OAAO,EAAE;oBACvB,4BAA4B;oBAC5B,oBAAoB,EAAE,CAAC;iBACvB;YACF,CAAC,CAAC,CAAC;SACH;IACF,CAAC;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const querystring: any;
|
|
2
|
+
declare const url: any;
|
|
3
|
+
declare const SockJS: any;
|
|
4
|
+
declare const formatWebpackMessages: any;
|
|
5
|
+
declare const reportBuildError: any, dismissBuildError: any;
|
|
6
|
+
declare let sockOptions: {};
|
|
7
|
+
declare const connection: any;
|
|
8
|
+
//# sourceMappingURL=entry-devserver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-devserver.d.ts","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/entry-devserver.ts"],"names":[],"mappings":"AACA,QAAA,MAAM,WAAW,KAAyB,CAAC;AAC3C,QAAA,MAAM,GAAG,KAAiB,CAAC;AAC3B,QAAA,MAAM,MAAM,KAA2B,CAAC;AACxC,QAAA,MAAM,qBAAqB,KAAmD,CAAC;AAC/E,QAAA,MAAO,gBAAgB,OAAE,iBAAiB,KAAkC,CAAC;AAE7E,QAAA,IAAI,WAAW,IAAK,CAAC;AAKrB,QAAA,MAAM,UAAU,KAOf,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// @ts-check
|
|
3
|
+
const querystring = require('querystring');
|
|
4
|
+
const url = require('url');
|
|
5
|
+
const SockJS = require('sockjs-client');
|
|
6
|
+
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
7
|
+
const { reportBuildError, dismissBuildError } = require('react-error-overlay');
|
|
8
|
+
let sockOptions = {};
|
|
9
|
+
if (typeof __resourceQuery === 'string' && __resourceQuery.length > 1) {
|
|
10
|
+
sockOptions = querystring.parse(__resourceQuery.substr(1));
|
|
11
|
+
}
|
|
12
|
+
const connection = new SockJS(url.format({
|
|
13
|
+
protocol: window.location.protocol,
|
|
14
|
+
hostname: sockOptions.sockHost || window.location.hostname,
|
|
15
|
+
port: sockOptions.sockPort || window.location.port,
|
|
16
|
+
pathname: sockOptions.sockPath || '/sockjs-node',
|
|
17
|
+
}));
|
|
18
|
+
connection.onmessage = function onmessage(e) {
|
|
19
|
+
const { type, data } = JSON.parse(e.data);
|
|
20
|
+
let formatted;
|
|
21
|
+
switch (type) {
|
|
22
|
+
case 'ok':
|
|
23
|
+
dismissBuildError();
|
|
24
|
+
break;
|
|
25
|
+
case 'errors':
|
|
26
|
+
formatted = formatWebpackMessages({
|
|
27
|
+
errors: data,
|
|
28
|
+
warnings: [],
|
|
29
|
+
});
|
|
30
|
+
reportBuildError(formatted.errors[0]);
|
|
31
|
+
break;
|
|
32
|
+
default:
|
|
33
|
+
// Do nothing.
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=entry-devserver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry-devserver.js","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/entry-devserver.ts"],"names":[],"mappings":";AAAA,YAAY;AACZ,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACxC,MAAM,qBAAqB,GAAG,OAAO,CAAC,uCAAuC,CAAC,CAAC;AAC/E,MAAM,EAAC,gBAAgB,EAAE,iBAAiB,EAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAE7E,IAAI,WAAW,GAAG,EAAE,CAAC;AACrB,IAAI,OAAO,eAAe,KAAK,QAAQ,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE;IACtE,WAAW,GAAG,WAAW,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;CAC3D;AAED,MAAM,UAAU,GAAG,IAAI,MAAM,CAC5B,GAAG,CAAC,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAClC,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,QAAQ;IAC1D,IAAI,EAAE,WAAW,CAAC,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI;IAClD,QAAQ,EAAE,WAAW,CAAC,QAAQ,IAAI,cAAc;CAChD,CAAC,CACF,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,SAAS,SAAS,CAAC,CAAC;IAC1C,MAAM,EAAC,IAAI,EAAE,IAAI,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,SAAS,CAAC;IACd,QAAQ,IAAI,EAAE;QACb,KAAK,IAAI;YACR,iBAAiB,EAAE,CAAC;YACpB,MAAM;QACP,KAAK,QAAQ;YACZ,SAAS,GAAG,qBAAqB,CAAC;gBACjC,MAAM,EAAE,IAAI;gBACZ,QAAQ,EAAE,EAAE;aACZ,CAAC,CAAC;YACH,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YACtC,MAAM;QACP,QAAQ;QACR,cAAc;KACd;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import webpack from 'webpack';
|
|
2
|
+
/** @typedef {{ sockHost: string, sockPath: string, sockPort: number }} SockOptions */
|
|
3
|
+
/** @typedef {{ dependOn?: [string, ...string[]], filename?: any, import: [string, ...string[]], library?: any }} EntryDescriptionNormalized */
|
|
4
|
+
export declare class ErrorOverlayPlugin {
|
|
5
|
+
apply(compiler: webpack.Compiler): void;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAS9B,sFAAsF;AACtF,+IAA+I;AAE/I,qBAAa,kBAAkB;IAC9B,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAkDhC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorOverlayPlugin = void 0;
|
|
4
|
+
// @ts-check
|
|
5
|
+
const errorOverlayMiddleware = require('react-dev-utils/errorOverlayMiddleware');
|
|
6
|
+
const chunkPathBasic = require.resolve('./entry-basic');
|
|
7
|
+
const chunkPathDevServer = require.resolve('./entry-devserver');
|
|
8
|
+
let deps = [];
|
|
9
|
+
/** @typedef {{ sockHost: string, sockPath: string, sockPort: number }} SockOptions */
|
|
10
|
+
/** @typedef {{ dependOn?: [string, ...string[]], filename?: any, import: [string, ...string[]], library?: any }} EntryDescriptionNormalized */
|
|
11
|
+
class ErrorOverlayPlugin {
|
|
12
|
+
apply(compiler) {
|
|
13
|
+
const className = this.constructor.name;
|
|
14
|
+
if (compiler.options.mode !== 'development') {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const devServerEnabled = Boolean(compiler.options.devServer);
|
|
18
|
+
const usingSocket = devServerEnabled && typeof compiler.options.devServer.socket === 'string';
|
|
19
|
+
/** @type { SockOptions } */
|
|
20
|
+
const sockOptions = {};
|
|
21
|
+
if (devServerEnabled && usingSocket) {
|
|
22
|
+
sockOptions.sockHost = compiler.options.devServer.sockHost;
|
|
23
|
+
sockOptions.sockPath = compiler.options.devServer.sockPath;
|
|
24
|
+
sockOptions.sockPort = compiler.options.devServer.sockPort;
|
|
25
|
+
}
|
|
26
|
+
compiler.hooks.entryOption.tap(className, (context, entry) => {
|
|
27
|
+
if (typeof entry !== 'function') {
|
|
28
|
+
Object.keys(entry).forEach((entryName) => {
|
|
29
|
+
if (deps.includes(entryName)) {
|
|
30
|
+
// Skip dependencies, only inject real entry points
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
entry[entryName] = adjustEntry(entry[entryName], devServerEnabled, usingSocket, sockOptions);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
compiler.hooks.afterResolvers.tap(className, ({ options }) => {
|
|
38
|
+
if (devServerEnabled) {
|
|
39
|
+
const originalBefore = options.devServer.before;
|
|
40
|
+
options.devServer.before = (app, server) => {
|
|
41
|
+
if (originalBefore) {
|
|
42
|
+
originalBefore(app, server);
|
|
43
|
+
}
|
|
44
|
+
app.use(errorOverlayMiddleware());
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ErrorOverlayPlugin = ErrorOverlayPlugin;
|
|
51
|
+
/**
|
|
52
|
+
* Puts dev server chunk path in front of other entries
|
|
53
|
+
* @param {EntryDescriptionNormalized} entry
|
|
54
|
+
* @param {boolean} enableDevServer
|
|
55
|
+
* @param {boolean} usingSocket
|
|
56
|
+
* @param {SockOptions} sockOptions
|
|
57
|
+
* @returns {EntryDescriptionNormalized}
|
|
58
|
+
*/
|
|
59
|
+
function adjustEntry(entry, enableDevServer, usingSocket, sockOptions) {
|
|
60
|
+
if (entry.dependOn) {
|
|
61
|
+
deps = [...deps, ...entry.dependOn];
|
|
62
|
+
}
|
|
63
|
+
if (entry.library) {
|
|
64
|
+
// skip libraries
|
|
65
|
+
return entry;
|
|
66
|
+
}
|
|
67
|
+
if (typeof entry.import === 'string') {
|
|
68
|
+
entry.import = [entry.import];
|
|
69
|
+
}
|
|
70
|
+
if (enableDevServer && usingSocket) {
|
|
71
|
+
const sockHost = sockOptions.sockHost
|
|
72
|
+
? ` & sockHost = ${sockOptions.sockHost}`
|
|
73
|
+
: '';
|
|
74
|
+
const sockPath = sockOptions.sockPath
|
|
75
|
+
? ` & sockPath = ${sockOptions.sockPath}`
|
|
76
|
+
: '';
|
|
77
|
+
const sockPort = sockOptions.sockPort
|
|
78
|
+
? ` & sockPort = ${sockOptions.sockPort}`
|
|
79
|
+
: '';
|
|
80
|
+
const chunkPathDevServerWithParams = `${chunkPathDevServer} ? ${sockHost}
|
|
81
|
+
${sockPath}
|
|
82
|
+
${sockPort}`;
|
|
83
|
+
if (!entry.import.includes(chunkPathDevServerWithParams)) {
|
|
84
|
+
entry.import.unshift(chunkPathDevServerWithParams);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (!entry.import.includes(chunkPathBasic)) {
|
|
88
|
+
entry.import.unshift(chunkPathBasic);
|
|
89
|
+
}
|
|
90
|
+
return entry;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fast-refresh/error-overlay/index.ts"],"names":[],"mappings":";;;AAEA,YAAY;AACZ,MAAM,sBAAsB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAEjF,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;AACxD,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAChE,IAAI,IAAI,GAAG,EAAE,CAAC;AAEd,sFAAsF;AACtF,+IAA+I;AAE/I,MAAa,kBAAkB;IAC9B,KAAK,CAAC,QAA0B;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAExC,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,KAAK,aAAa,EAAE;YAC5C,OAAO;SACP;QAED,MAAM,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAC7D,MAAM,WAAW,GAChB,gBAAgB,IAAI,OAAO,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,QAAQ,CAAC;QAE3E,4BAA4B;QAC5B,MAAM,WAAW,GAAG,EAAE,CAAC;QACvB,IAAI,gBAAgB,IAAI,WAAW,EAAE;YACpC,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC;YAC3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|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
import webpack from 'webpack';
|
|
25
|
+
export declare class ReactFreshWebpackPlugin {
|
|
26
|
+
apply(compiler: webpack.Compiler): void;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=fast-refresh.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-refresh.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/fast-refresh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,OAAO,MAAM,SAAS,CAAC;AA2C9B,qBAAa,uBAAuB;IACnC,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ;CAkDhC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ReactFreshWebpackPlugin = void 0;
|
|
27
|
+
// This file is copied from the @vercel/next.js, with removed TS annotations
|
|
28
|
+
// minor tweaks, and removed all webpack v4-related functionality
|
|
29
|
+
//
|
|
30
|
+
// https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/ReactRefreshWebpackPlugin.ts
|
|
31
|
+
const { Template, RuntimeModule, RuntimeGlobals, version } = require('webpack');
|
|
32
|
+
class ReactRefreshRuntimeModule extends RuntimeModule {
|
|
33
|
+
constructor() {
|
|
34
|
+
super('react refresh', 5);
|
|
35
|
+
}
|
|
36
|
+
generate() {
|
|
37
|
+
const { runtimeTemplate } = this.compilation;
|
|
38
|
+
return Template.asString([
|
|
39
|
+
`${RuntimeGlobals.interceptModuleExecution}.push(${runtimeTemplate.basicFunction('options', [
|
|
40
|
+
`const originalFactory = options.factory;`,
|
|
41
|
+
`options.factory = ${runtimeTemplate.basicFunction('moduleObject, moduleExports, webpackRequire', [
|
|
42
|
+
// Legacy CSS implementations will `eval` browser code in a Node.js
|
|
43
|
+
// context to extract CSS. For backwards compatibility, we need to check
|
|
44
|
+
// we're in a browser context before continuing.
|
|
45
|
+
`const hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;`,
|
|
46
|
+
`const cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : () => {};`,
|
|
47
|
+
'try {',
|
|
48
|
+
Template.indent('originalFactory.call(this, moduleObject, moduleExports, webpackRequire);'),
|
|
49
|
+
'} finally {',
|
|
50
|
+
Template.indent(`cleanup();`),
|
|
51
|
+
'}',
|
|
52
|
+
])}`,
|
|
53
|
+
])})`,
|
|
54
|
+
]);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class ReactFreshWebpackPlugin {
|
|
58
|
+
apply(compiler) {
|
|
59
|
+
// eslint-disable-next-line no-eq-null
|
|
60
|
+
const webpackMajorVersion = parseInt(version == null ? '' : version, 10);
|
|
61
|
+
if (webpackMajorVersion < 5) {
|
|
62
|
+
throw new Error(`ReactFreshWebpackPlugin does not support webpack v${webpackMajorVersion}.`);
|
|
63
|
+
}
|
|
64
|
+
compiler.hooks.beforeCompile.tap(this.constructor.name, (file) => {
|
|
65
|
+
console.log('before compile', Date.now());
|
|
66
|
+
});
|
|
67
|
+
compiler.hooks.done.tap(this.constructor.name, (file) => {
|
|
68
|
+
console.log('DONE', Date.now());
|
|
69
|
+
});
|
|
70
|
+
compiler.hooks.emit.tap(this.constructor.name, (file) => {
|
|
71
|
+
console.log('EMITTED', Date.now(), file.assets);
|
|
72
|
+
});
|
|
73
|
+
compiler.hooks.compilation.tap(this.constructor.name, (compilation) => {
|
|
74
|
+
console.log('TAPPING', Date.now());
|
|
75
|
+
compilation.hooks.rebuildModule.tap('ggg', () => {
|
|
76
|
+
console.log('rebuilt');
|
|
77
|
+
});
|
|
78
|
+
compilation.mainTemplate.hooks.localVars.tap(this.constructor.name, (source) => Template.asString([
|
|
79
|
+
source,
|
|
80
|
+
'',
|
|
81
|
+
'// noop fns to prevent runtime errors during initialization',
|
|
82
|
+
'if (typeof self !== "undefined") {',
|
|
83
|
+
Template.indent('self.$RefreshReg$ = function () {};'),
|
|
84
|
+
Template.indent('self.$RefreshSig$ = function () {'),
|
|
85
|
+
Template.indent(Template.indent('return function (type) {')),
|
|
86
|
+
Template.indent(Template.indent(Template.indent('return type;'))),
|
|
87
|
+
Template.indent(Template.indent('};')),
|
|
88
|
+
Template.indent('};'),
|
|
89
|
+
'}',
|
|
90
|
+
]));
|
|
91
|
+
compilation.hooks.additionalTreeRuntimeRequirements.tap(this.constructor.name, (chunk) => {
|
|
92
|
+
compilation.addRuntimeModule(chunk, new ReactRefreshRuntimeModule());
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.ReactFreshWebpackPlugin = ReactFreshWebpackPlugin;
|
|
98
|
+
//# sourceMappingURL=fast-refresh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fast-refresh.js","sourceRoot":"","sources":["../../src/fast-refresh/fast-refresh.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;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AAM,CAAC,QAAQ,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;gBAC5D,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;gBACjE,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gBACtC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;gBACrB,GAAG;aACH,CAAC,CACH,CAAC;YAEF,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,GAAG,CACtD,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,CAAC,KAAU,EAAE,EAAE;gBACd,WAAW,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,yBAAyB,EAAE,CAAC,CAAC;YACtE,CAAC,CACD,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AAnDD,0DAmDC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
declare const RefreshRuntime: any;
|
|
25
|
+
declare function isSafeExport(key: any): boolean;
|
|
26
|
+
declare function registerExportsForReactRefresh(moduleExports: any, moduleID: any): void;
|
|
27
|
+
declare function isReactRefreshBoundary(moduleExports: any): boolean;
|
|
28
|
+
declare function shouldInvalidateReactRefreshBoundary(prevExports: any, nextExports: any): boolean;
|
|
29
|
+
declare function getRefreshBoundarySignature(moduleExports: any): any[];
|
|
30
|
+
declare let isUpdateScheduled: boolean;
|
|
31
|
+
declare function scheduleUpdate(): void;
|
|
32
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,QAAA,MAAM,cAAc,KAAmC,CAAC;AAExD,iBAAS,YAAY,CAAC,GAAG,KAAA,WAQxB;AAED,iBAAS,8BAA8B,CAAC,aAAa,KAAA,EAAE,QAAQ,KAAA,QAiB9D;AAED,iBAAS,sBAAsB,CAAC,aAAa,KAAA,WAyB5C;AAED,iBAAS,oCAAoC,CAAC,WAAW,KAAA,EAAE,WAAW,KAAA,WAcrE;AAED,iBAAS,2BAA2B,CAAC,aAAa,KAAA,SAoBjD;AAED,QAAA,IAAI,iBAAiB,SAAQ,CAAC;AAC9B,iBAAS,cAAc,SA6BtB"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MIT License
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
// This file is copied from the Metro JavaScript bundler, with minor tweaks for
|
|
26
|
+
// webpack compatibility.
|
|
27
|
+
//
|
|
28
|
+
// https://github.com/facebook/metro/blob/d6b9685c730d0d63577db40f41369157f28dfa3a/packages/metro/src/lib/polyfills/require.js
|
|
29
|
+
const RefreshRuntime = require('react-refresh/runtime');
|
|
30
|
+
function isSafeExport(key) {
|
|
31
|
+
return (key === '__esModule' ||
|
|
32
|
+
key === '__N_SSG' ||
|
|
33
|
+
key === '__N_SSP' ||
|
|
34
|
+
// TODO: remove this key from page config instead of allow listing it
|
|
35
|
+
key === 'config');
|
|
36
|
+
}
|
|
37
|
+
function registerExportsForReactRefresh(moduleExports, moduleID) {
|
|
38
|
+
RefreshRuntime.register(moduleExports, moduleID + ' %exports%');
|
|
39
|
+
if (moduleExports == null || typeof moduleExports !== 'object') {
|
|
40
|
+
// Exit if we can't iterate over exports.
|
|
41
|
+
// (This is important for legacy environments.)
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
for (const key in moduleExports) {
|
|
45
|
+
if (isSafeExport(key)) {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
const exportValue = moduleExports[key];
|
|
49
|
+
const typeID = moduleID + ' %exports% ' + key;
|
|
50
|
+
RefreshRuntime.register(exportValue, typeID);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function isReactRefreshBoundary(moduleExports) {
|
|
54
|
+
if (RefreshRuntime.isLikelyComponentType(moduleExports)) {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
if (moduleExports == null || typeof moduleExports !== 'object') {
|
|
58
|
+
// Exit if we can't iterate over exports.
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
let hasExports = false;
|
|
62
|
+
let areAllExportsComponents = true;
|
|
63
|
+
for (const key in moduleExports) {
|
|
64
|
+
hasExports = true;
|
|
65
|
+
if (isSafeExport(key)) {
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
const exportValue = moduleExports[key];
|
|
69
|
+
if (!RefreshRuntime.isLikelyComponentType(exportValue)) {
|
|
70
|
+
areAllExportsComponents = false;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return hasExports && areAllExportsComponents;
|
|
74
|
+
}
|
|
75
|
+
function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
|
|
76
|
+
const prevSignature = getRefreshBoundarySignature(prevExports);
|
|
77
|
+
const nextSignature = getRefreshBoundarySignature(nextExports);
|
|
78
|
+
if (prevSignature.length !== nextSignature.length) {
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
for (let i = 0; i < nextSignature.length; i++) {
|
|
82
|
+
if (prevSignature[i] !== nextSignature[i]) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
function getRefreshBoundarySignature(moduleExports) {
|
|
89
|
+
const signature = [];
|
|
90
|
+
signature.push(RefreshRuntime.getFamilyByType(moduleExports));
|
|
91
|
+
if (moduleExports == null || typeof moduleExports !== 'object') {
|
|
92
|
+
// Exit if we can't iterate over exports.
|
|
93
|
+
// (This is important for legacy environments.)
|
|
94
|
+
return signature;
|
|
95
|
+
}
|
|
96
|
+
for (const key in moduleExports) {
|
|
97
|
+
if (isSafeExport(key)) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
const exportValue = moduleExports[key];
|
|
101
|
+
signature.push(key);
|
|
102
|
+
signature.push(RefreshRuntime.getFamilyByType(exportValue));
|
|
103
|
+
}
|
|
104
|
+
return signature;
|
|
105
|
+
}
|
|
106
|
+
let isUpdateScheduled = false;
|
|
107
|
+
function scheduleUpdate() {
|
|
108
|
+
if (isUpdateScheduled) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
function canApplyUpdate() {
|
|
112
|
+
return module.hot.status() === 'idle';
|
|
113
|
+
}
|
|
114
|
+
isUpdateScheduled = true;
|
|
115
|
+
setTimeout(() => {
|
|
116
|
+
isUpdateScheduled = false;
|
|
117
|
+
// Only trigger refresh if the webpack HMR state is idle
|
|
118
|
+
if (canApplyUpdate()) {
|
|
119
|
+
try {
|
|
120
|
+
RefreshRuntime.performReactRefresh();
|
|
121
|
+
}
|
|
122
|
+
catch (err) {
|
|
123
|
+
console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' +
|
|
124
|
+
err);
|
|
125
|
+
}
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
return scheduleUpdate();
|
|
129
|
+
}, 30);
|
|
130
|
+
}
|
|
131
|
+
module.exports = {
|
|
132
|
+
registerExportsForReactRefresh,
|
|
133
|
+
isReactRefreshBoundary,
|
|
134
|
+
shouldInvalidateReactRefreshBoundary,
|
|
135
|
+
getRefreshBoundarySignature,
|
|
136
|
+
scheduleUpdate,
|
|
137
|
+
};
|
|
138
|
+
//# sourceMappingURL=helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/fast-refresh/helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,+EAA+E;AAC/E,yBAAyB;AACzB,EAAE;AACF,8HAA8H;AAE9H,MAAM,cAAc,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAExD,SAAS,YAAY,CAAC,GAAG;IACxB,OAAO,CACN,GAAG,KAAK,YAAY;QACpB,GAAG,KAAK,SAAS;QACjB,GAAG,KAAK,SAAS;QACjB,qEAAqE;QACrE,GAAG,KAAK,QAAQ,CAChB,CAAC;AACH,CAAC;AAED,SAAS,8BAA8B,CAAC,aAAa,EAAE,QAAQ;IAC9D,cAAc,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,GAAG,YAAY,CAAC,CAAC;IAChE,IAAI,aAAa,IAAI,IAAI,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QAC/D,yCAAyC;QACzC,+CAA+C;QAC/C,OAAO;KACP;IAED,KAAK,MAAM,GAAG,IAAI,aAAa,EAAE;QAChC,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE;YACtB,SAAS;SACT;QAED,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,QAAQ,GAAG,aAAa,GAAG,GAAG,CAAC;QAC9C,cAAc,CAAC,QAAQ,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AC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
declare function RefreshModuleRuntime(): void;
|
|
25
|
+
declare let refreshModuleRuntime: string;
|
|
26
|
+
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAQH,iBAAS,oBAAoB,SA8E5B;AAED,QAAA,IAAI,oBAAoB,QAAkC,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
// This file is copied from the @vercel/next.js, with removed TS annotations
|
|
26
|
+
//
|
|
27
|
+
// https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/loader.ts
|
|
28
|
+
// This function gets unwrapped into global scope, which is why we don't invert
|
|
29
|
+
// if-blocks. Also, you cannot use `return`.
|
|
30
|
+
function RefreshModuleRuntime() {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
// Legacy CSS implementations will `eval` browser code in a Node.js context
|
|
33
|
+
// to extract CSS. For backwards compatibility, we need to check we're in a
|
|
34
|
+
// browser context before continuing.
|
|
35
|
+
if (typeof self !== 'undefined' &&
|
|
36
|
+
// AMP / No-JS mode does not inject these helpers:
|
|
37
|
+
'$RefreshHelpers$' in self) {
|
|
38
|
+
// @ts-expect-errors
|
|
39
|
+
// eslint-disable-next-line no-proto
|
|
40
|
+
const currentExports = module.__proto__.exports;
|
|
41
|
+
let prevExports = null;
|
|
42
|
+
if ((_b = (_a = module.hot) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.prevExports) {
|
|
43
|
+
prevExports = module.hot.data.prevExports;
|
|
44
|
+
}
|
|
45
|
+
// This cannot happen in MainTemplate because the exports mismatch between
|
|
46
|
+
// templating and execution.
|
|
47
|
+
// @ts-expect-error
|
|
48
|
+
self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);
|
|
49
|
+
// A module can be accepted automatically based on its exports, e.g. when
|
|
50
|
+
// it is a Refresh Boundary.
|
|
51
|
+
// @ts-expect-error
|
|
52
|
+
if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
|
|
53
|
+
// Save the previous exports on update so we can compare the boundary
|
|
54
|
+
// signatures.
|
|
55
|
+
// @ts-expect-errors
|
|
56
|
+
module.hot.dispose((data) => {
|
|
57
|
+
data.prevExports = currentExports;
|
|
58
|
+
});
|
|
59
|
+
// Unconditionally accept an update to this module, we'll check if it's
|
|
60
|
+
// still a Refresh Boundary later.
|
|
61
|
+
// @ts-expect-errors
|
|
62
|
+
module.hot.accept();
|
|
63
|
+
// This field is set when the previous version of this module was a
|
|
64
|
+
// Refresh Boundary, letting us know we need to check for invalidation or
|
|
65
|
+
// enqueue an update.
|
|
66
|
+
if (prevExports !== null) {
|
|
67
|
+
// A boundary can become ineligible if its exports are incompatible
|
|
68
|
+
// with the previous exports.
|
|
69
|
+
//
|
|
70
|
+
// For example, if you add/remove/change exports, we'll want to
|
|
71
|
+
// re-execute the importing modules, and force those components to
|
|
72
|
+
// re-render. Similarly, if you convert a class component to a
|
|
73
|
+
// function, we want to invalidate the boundary.
|
|
74
|
+
if (
|
|
75
|
+
// @ts-expect-error
|
|
76
|
+
self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevExports, currentExports)) {
|
|
77
|
+
// @ts-expect-errors
|
|
78
|
+
module.hot.invalidate();
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
// @ts-expect-errors
|
|
82
|
+
self.$RefreshHelpers$.scheduleUpdate();
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
// Since we just executed the code for the module, it's possible that the
|
|
88
|
+
// new exports made it ineligible for being a boundary.
|
|
89
|
+
// We only care about the case when we were _previously_ a boundary,
|
|
90
|
+
// because we already accepted this update (accidental side effect).
|
|
91
|
+
const isNoLongerABoundary = prevExports !== null;
|
|
92
|
+
if (isNoLongerABoundary) {
|
|
93
|
+
// @ts-expect-errors
|
|
94
|
+
module.hot.invalidate();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
let refreshModuleRuntime = RefreshModuleRuntime.toString();
|
|
100
|
+
refreshModuleRuntime = refreshModuleRuntime.slice(refreshModuleRuntime.indexOf('{') + 1, refreshModuleRuntime.lastIndexOf('}'));
|
|
101
|
+
// eslint-disable-next-line func-names
|
|
102
|
+
module.exports = function ReactRefreshLoader(source, inputSourceMap) {
|
|
103
|
+
// @ts-expect-error
|
|
104
|
+
this.callback(null, `${source}\n\n;${refreshModuleRuntime}`, inputSourceMap);
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/fast-refres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AClE,8DAA8D;gBAC9D,gDAAgD;gBAChD;gBACC,mBAAmB;gBACnB,IAAI,CAAC,gBAAgB,CAAC,oCAAoC,CACzD,WAAW,EACX,cAAc,CACd,EACA;oBACD,oBAAoB;oBACpB,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;iBACxB;qBAAM;oBACN,oBAAoB;oBACpB,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAC;iBACvC;aACD;SACD;aAAM;YACN,yEAAyE;YACzE,uDAAuD;YACvD,oEAAoE;YACpE,oEAAoE;YACpE,MAAM,mBAAmB,GAAG,WAAW,KAAK,IAAI,CAAC;YACjD,IAAI,mBAAmB,EAAE;gBACxB,oBAAoB;gBACpB,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC;aACxB;SACD;KACD;AACF,CAAC;AAED,IAAI,oBAAoB,GAAG,oBAAoB,CAAC,QAAQ,EAAE,CAAC;AAC3D,oBAAoB,GAAG,oBAAoB,CAAC,KAAK,CAChD,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EACrC,oBAAoB,CAAC,WAAW,CAAC,GAAG,CAAC,CACrC,CAAC;AACF,sCAAsC;AACtC,MAAM,CAAC,OAAO,GAAG,SAAS,kBAAkB,CAAC,MAAW,EAAE,cAAmB;IAC5E,mBAAmB;IACnB,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,MAAM,QAAQ,oBAAoB,EAAE,EAAE,cAAc,CAAC,CAAC;AAC9E,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MIT License (MIT)
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
5
|
+
*
|
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
* furnished to do so, subject to the following conditions:
|
|
12
|
+
*
|
|
13
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
* copies or substantial portions of the Software.
|
|
15
|
+
*
|
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
* SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
declare const RefreshRuntime: any;
|
|
25
|
+
declare const RefreshHelpers: any;
|
|
26
|
+
//# sourceMappingURL=runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/fast-refresh/runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH,QAAA,MAAM,cAAc,KAAmC,CAAC;AACxD,QAAA,MAAM,cAAc,KAAuB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The MIT License (MIT)
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2020 Vercel, Inc.
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
// This file is copied from the @vercel/next.js, with removed TS annotations
|
|
26
|
+
//
|
|
27
|
+
// https://github.com/vercel/next.js/blob/canary/packages/react-refresh-utils/runtime.ts
|
|
28
|
+
const RefreshRuntime = require('react-refresh/runtime');
|
|
29
|
+
const RefreshHelpers = require('./helpers');
|
|
30
|
+
// Hook into ReactDOM initialization
|
|
31
|
+
RefreshRuntime.injectIntoGlobalHook(self);
|
|
32
|
+
// noop fns to prevent runtime errors during initialization
|
|
33
|
+
self.$RefreshReg$ = () => { };
|
|
34
|
+
self.$RefreshSig$ = () => (type) => type;
|
|
35
|
+
// Register global helpers
|
|
36
|
+
self.$RefreshHelpers$ = RefreshHelpers;
|
|
37
|
+
// Register a helper for module execution interception
|
|
38
|
+
self.$RefreshInterceptModuleExecution$ = function (webpackModuleId) {
|
|
39
|
+
const prevRefreshReg = self.$RefreshReg$;
|
|
40
|
+
const prevRefreshSig = self.$RefreshSig$;
|
|
41
|
+
self.$RefreshReg$ = (type, id) => {
|
|
42
|
+
RefreshRuntime.register(type, webpackModuleId + ' ' + id);
|
|
43
|
+
};
|
|
44
|
+
self.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform;
|
|
45
|
+
// Modeled after `useEffect` cleanup pattern:
|
|
46
|
+
// https://reactjs.org/docs/hooks-effect.html#effects-with-cleanup
|
|
47
|
+
return () => {
|
|
48
|
+
self.$RefreshReg$ = prevRefreshReg;
|
|
49
|
+
self.$RefreshSig$ = prevRefreshSig;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../src/fast-refresh/runtime.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,4EAA4E;AAC5E,EAAE;AACF,wFAAwF;AAExF,MAAM,cAAc,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AACxD,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAE5C,oCAAoC;AACpC,cAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAE1C,2DAA2D;AAC3D,IAAI,CAAC,YAAY,GAAG,GAAG,EAAE,GAAE,CAAC,CAAC;AAC7B,IAAI,CAAC,YAAY,GAAG,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC;AAEzC,0BAA0B;AAC1B,IAAI,CAAC,gBAAgB,GAAG,cAAc,CAAC;AAEvC,sDAAsD;AACtD,IAAI,CAAC,iCAAiC,GAAG,UAAU,eAAe;IACjE,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC;IACzC,MAAM,cAAc,GAAG,IAAI,CAAC,YAAY,CAAC;IAEzC,IAAI,CAAC,YAAY,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE;QAChC,cAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IAC3D,CAAC,CAAC;IAEF,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC,mCAAmC,CAAC;IAEvE,6CAA6C;IAC7C,kEAAkE;IAClE,OAAO,GAAG,EAAE;QACX,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAC;IACpC,CAAC,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import webpack from 'webpack';
|
|
2
|
+
import type ws from 'ws';
|
|
3
|
+
export declare class WebpackHotMiddleware {
|
|
4
|
+
eventStream: EventStream;
|
|
5
|
+
latestStats: webpack.Stats | null;
|
|
6
|
+
clientLatestStats: webpack.Stats | null;
|
|
7
|
+
closed: boolean;
|
|
8
|
+
serverError: boolean;
|
|
9
|
+
constructor(compilers: webpack.Compiler[]);
|
|
10
|
+
onServerInvalid: () => void;
|
|
11
|
+
onClientInvalid: () => void;
|
|
12
|
+
onServerDone: (statsResult: webpack.Stats) => void;
|
|
13
|
+
onClientDone: (statsResult: webpack.Stats) => void;
|
|
14
|
+
onHMR: (client: ws) => void;
|
|
15
|
+
publishStats: (action: string, statsResult: webpack.Stats) => void;
|
|
16
|
+
publish: (payload: any) => void;
|
|
17
|
+
close: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare class EventStream {
|
|
20
|
+
clients: Set<ws>;
|
|
21
|
+
constructor();
|
|
22
|
+
everyClient(fn: (client: ws) => void): void;
|
|
23
|
+
close(): void;
|
|
24
|
+
handler(client: ws): void;
|
|
25
|
+
publish(payload: any): void;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=hot-middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hot-middleware.d.ts","sourceRoot":"","sources":["../src/hot-middleware.ts"],"names":[],"mappings":"AAuBA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAEzB,qBAAa,oBAAoB;IAChC,WAAW,EAAE,WAAW,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IAClC,iBAAiB,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,CAAC;gBAET,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE;IAoBzC,eAAe,aASb;IAEF,eAAe,aAIb;IAEF,YAAY,gBAAiB,QAAQ,KAAK,UAWxC;IAEF,YAAY,gBAAiB,QAAQ,KAAK,UAOxC;IAEF,KAAK,WAAY,EAAE,UAQjB;IAEF,YAAY,WAAY,MAAM,eAAe,QAAQ,KAAK,UAcxD;IAEF,OAAO,YAAa,GAAG,UAGrB;IAEF,KAAK,aAMH;CACF;AAED,cAAM,WAAW;IAChB,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;;IAKjB,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,EAAE,EAAE,KAAK,IAAI;IAMpC,KAAK;IAOL,OAAO,CAAC,MAAM,EAAE,EAAE;IAOlB,OAAO,CAAC,OAAO,EAAE,GAAG;CAKpB"}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Based on https://github.com/webpack-contrib/webpack-hot-middleware/blob/9708d781ae0e46179cf8ea1a94719de4679aaf53/middleware.js
|
|
3
|
+
// Included License below
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.WebpackHotMiddleware = void 0;
|
|
6
|
+
class WebpackHotMiddleware {
|
|
7
|
+
constructor(compilers) {
|
|
8
|
+
this.onServerInvalid = () => {
|
|
9
|
+
if (!this.serverError)
|
|
10
|
+
return;
|
|
11
|
+
this.serverError = false;
|
|
12
|
+
if (this.clientLatestStats) {
|
|
13
|
+
this.latestStats = this.clientLatestStats;
|
|
14
|
+
this.publishStats('built', this.latestStats);
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
this.onClientInvalid = () => {
|
|
18
|
+
if (this.closed || this.serverError)
|
|
19
|
+
return;
|
|
20
|
+
this.latestStats = null;
|
|
21
|
+
this.eventStream.publish({ action: 'building' });
|
|
22
|
+
};
|
|
23
|
+
this.onServerDone = (statsResult) => {
|
|
24
|
+
if (this.closed)
|
|
25
|
+
return;
|
|
26
|
+
// Keep hold of latest stats so they can be propagated to new clients
|
|
27
|
+
// this.latestStats = statsResult
|
|
28
|
+
// this.publishStats('built', this.latestStats)
|
|
29
|
+
this.serverError = statsResult.hasErrors();
|
|
30
|
+
if (this.serverError) {
|
|
31
|
+
this.latestStats = statsResult;
|
|
32
|
+
this.publishStats('built', this.latestStats);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
this.onClientDone = (statsResult) => {
|
|
36
|
+
this.clientLatestStats = statsResult;
|
|
37
|
+
if (this.closed || this.serverError)
|
|
38
|
+
return;
|
|
39
|
+
// Keep hold of latest stats so they can be propagated to new clients
|
|
40
|
+
this.latestStats = statsResult;
|
|
41
|
+
this.publishStats('built', this.latestStats);
|
|
42
|
+
};
|
|
43
|
+
this.onHMR = (client) => {
|
|
44
|
+
if (this.closed)
|
|
45
|
+
return;
|
|
46
|
+
this.eventStream.handler(client);
|
|
47
|
+
if (this.latestStats) {
|
|
48
|
+
// Explicitly not passing in `log` fn as we don't want to log again on
|
|
49
|
+
// the server
|
|
50
|
+
this.publishStats('sync', this.latestStats);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
this.publishStats = (action, statsResult) => {
|
|
54
|
+
const stats = statsResult.toJson({
|
|
55
|
+
all: false,
|
|
56
|
+
hash: true,
|
|
57
|
+
warnings: true,
|
|
58
|
+
errors: true,
|
|
59
|
+
});
|
|
60
|
+
this.eventStream.publish({
|
|
61
|
+
action,
|
|
62
|
+
hash: stats.hash,
|
|
63
|
+
warnings: stats.warnings || [],
|
|
64
|
+
errors: stats.errors || [],
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
this.publish = (payload) => {
|
|
68
|
+
if (this.closed)
|
|
69
|
+
return;
|
|
70
|
+
this.eventStream.publish(payload);
|
|
71
|
+
};
|
|
72
|
+
this.close = () => {
|
|
73
|
+
if (this.closed)
|
|
74
|
+
return;
|
|
75
|
+
// Can't remove compiler plugins, so we just set a flag and noop if closed
|
|
76
|
+
// https://github.com/webpack/tapable/issues/32#issuecomment-350644466
|
|
77
|
+
this.closed = true;
|
|
78
|
+
this.eventStream.close();
|
|
79
|
+
};
|
|
80
|
+
this.eventStream = new EventStream();
|
|
81
|
+
this.latestStats = null;
|
|
82
|
+
this.clientLatestStats = null;
|
|
83
|
+
this.serverError = false;
|
|
84
|
+
this.closed = false;
|
|
85
|
+
compilers[0].hooks.invalid.tap('webpack-hot-middleware', this.onClientInvalid);
|
|
86
|
+
compilers[0].hooks.done.tap('webpack-hot-middleware', this.onClientDone);
|
|
87
|
+
compilers[1].hooks.invalid.tap('webpack-hot-middleware', this.onServerInvalid);
|
|
88
|
+
compilers[1].hooks.done.tap('webpack-hot-middleware', this.onServerDone);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.WebpackHotMiddleware = WebpackHotMiddleware;
|
|
92
|
+
class EventStream {
|
|
93
|
+
constructor() {
|
|
94
|
+
this.clients = new Set();
|
|
95
|
+
}
|
|
96
|
+
everyClient(fn) {
|
|
97
|
+
for (const client of this.clients) {
|
|
98
|
+
fn(client);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
close() {
|
|
102
|
+
this.everyClient((client) => {
|
|
103
|
+
client.close();
|
|
104
|
+
});
|
|
105
|
+
this.clients.clear();
|
|
106
|
+
}
|
|
107
|
+
handler(client) {
|
|
108
|
+
this.clients.add(client);
|
|
109
|
+
client.addEventListener('close', () => {
|
|
110
|
+
this.clients.delete(client);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
publish(payload) {
|
|
114
|
+
this.everyClient((client) => {
|
|
115
|
+
client.send(JSON.stringify(payload));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
//# sourceMappingURL=hot-middleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hot-middleware.js","sourceRoot":"","sources":["../src/hot-middleware.ts"],"names":[],"mappings":";AAAA,iIAAiI;AACjI,yBAAyB;;;AAyBzB,MAAa,oBAAoB;IAOhC,YAAY,SAA6B;QAoBzC,oBAAe,GAAG,GAAG,EAAE;YACtB,IAAI,CAAC,IAAI,CAAC,WAAW;gBAAE,OAAO;YAE9B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YAEzB,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC;gBAC1C,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;aAC7C;QACF,CAAC,CAAC;QAEF,oBAAe,GAAG,GAAG,EAAE;YACtB,IAAI,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,WAAW;gBAAE,OAAO;YAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAC,MAAM,EAAE,UAAU,EAAC,CAAC,CAAC;QAChD,CAAC,CAAC;QAEF,iBAAY,GAAG,CAAC,WAA0B,EAAE,EAAE;YAC7C,IAAI,IAAI,CAAC,MAAM;gBAAE,OAAO;YACxB,qEAAqE;YACrE,iCAAiC;YACjC,+CAA+C;YAC/C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC,SAAS,EAA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AW,CAAC,EAAwB;QACnC,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE;YAClC,EAAE,CAAC,MAAM,CAAC,CAAC;SACX;IACF,CAAC;IAED,KAAK;QACJ,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,EAAE;YAC3B,MAAM,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;IAED,OAAO,CAAC,MAAU;QACjB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,GAAG,EAAE;YACrC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,OAAY;QACnB,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,EAAE;YAC3B,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const BundlerInternals: {
|
|
|
11
11
|
cacheExists: (environment: "development" | "production", inputProps: object | null) => boolean;
|
|
12
12
|
clearCache: (environment: "development" | "production", inputProps: object | null) => Promise<void>;
|
|
13
13
|
};
|
|
14
|
+
export type { ProjectInfo } from './project-info';
|
|
14
15
|
export { bundle } from './bundler';
|
|
15
16
|
export { overrideWebpackConfig };
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAIzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAI5B,CAAC;AAEF,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,qBAAqB,EAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AAIzD,eAAO,MAAM,gBAAgB;;;;;;;;;;;CAI5B,CAAC;AAEF,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AACjC,OAAO,EAAC,qBAAqB,EAAC,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AAajD,sGAbA,wCAAqB,OAaA;AAZ7B,iDAA2C;AAC3C,mDAAwD;AAE3C,QAAA,gBAAgB,GAAG;IAC/B,WAAW,EAAX,0BAAW;IACX,WAAW,EAAX,2BAAW;IACX,UAAU,EAAV,0BAAU;CACV,CAAC;AAIF,qCAAiC;AAAzB,iGAAA,MAAM,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-wrapped.209+3d592d464",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"file-loader": "^6.2.0",
|
|
30
30
|
"latest-version": "^5.1.0",
|
|
31
31
|
"react-refresh": "^0.9.0-rc.2",
|
|
32
|
-
"remotion": "
|
|
32
|
+
"remotion": "3.0.0-wrapped.209+3d592d464",
|
|
33
33
|
"semver": "7.3.4",
|
|
34
34
|
"source-map-loader": "^3.0.0",
|
|
35
35
|
"style-loader": "^2.0.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "3d592d46430a327da46a29119c9528646bd12b9e"
|
|
57
57
|
}
|