Recipe-app main
This commit is contained in:
Generated
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const PLUGIN_NAME = 'ReactRefreshRspackPlugin';
|
||||
class ReactRefreshRspackPlugin {
|
||||
apply(compiler) {
|
||||
new compiler.webpack.ProvidePlugin({
|
||||
$ReactRefreshRuntime$: require.resolve('./internal/RspackReactRefresh'),
|
||||
}).apply(compiler);
|
||||
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
|
||||
compilation.hooks.additionalTreeRuntimeRequirements.tap(PLUGIN_NAME, (_, runtimeRequirements) => {
|
||||
runtimeRequirements.add(compiler.webpack.RuntimeGlobals.moduleCache);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
ReactRefreshRspackPlugin.loader = 'builtin:react-refresh-loader';
|
||||
exports.default = ReactRefreshRspackPlugin;
|
||||
//# sourceMappingURL=ReactRefreshRspackPlugin.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ReactRefreshRspackPlugin.js","sourceRoot":"","sources":["../ReactRefreshRspackPlugin.ts"],"names":[],"mappings":";;AAEA,MAAM,WAAW,GAAG,0BAA0B,CAAA;AAE9C,MAAM,wBAAwB;IAG5B,KAAK,CAAC,QAAkB;QACtB,IAAI,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC;YACjC,qBAAqB,EAAE,OAAO,CAAC,OAAO,CAAC,+BAA+B,CAAC;SACxE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;QAElB,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,EAAE;YAC1D,WAAW,CAAC,KAAK,CAAC,iCAAiC,CAAC,GAAG,CACrD,WAAW,EACX,CAAC,CAAC,EAAE,mBAAmB,EAAE,EAAE;gBACzB,mBAAmB,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;YACtE,CAAC,CACF,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;;AAfM,+BAAM,GAAG,8BAA8B,CAAA;AAkBhD,kBAAe,wBAAwB,CAAA"}
|
||||
frontend/node_modules/next/dist/compiled/@next/react-refresh-utils/dist/ReactRefreshWebpackPlugin.js
Generated
Vendored
+137
@@ -0,0 +1,137 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
// Shared between webpack 4 and 5:
|
||||
function injectRefreshFunctions(compilation, Template) {
|
||||
const hookVars = compilation.mainTemplate.hooks.localVars;
|
||||
hookVars.tap('ReactFreshWebpackPlugin', (source) => Template.asString([
|
||||
source,
|
||||
'',
|
||||
'// noop fns to prevent runtime errors during initialization',
|
||||
'if (typeof self !== "undefined") {',
|
||||
Template.indent('self.$RefreshReg$ = function () {};'),
|
||||
Template.indent('self.$RefreshSig$ = function () {'),
|
||||
Template.indent(Template.indent('return function (type) {')),
|
||||
Template.indent(Template.indent(Template.indent('return type;'))),
|
||||
Template.indent(Template.indent('};')),
|
||||
Template.indent('};'),
|
||||
'}',
|
||||
]));
|
||||
}
|
||||
function webpack4(compiler) {
|
||||
const { Template } = this;
|
||||
// Webpack 4 does not have a method to handle interception of module
|
||||
// execution.
|
||||
// The closest thing we have to emulating this is mimicking the behavior of
|
||||
// `strictModuleExceptionHandling` in `MainTemplate`:
|
||||
// https://github.com/webpack/webpack/blob/4c644bf1f7cb067c748a52614500e0e2182b2700/lib/MainTemplate.js#L200
|
||||
compiler.hooks.compilation.tap('ReactFreshWebpackPlugin', (compilation) => {
|
||||
injectRefreshFunctions(compilation, Template);
|
||||
const hookRequire = compilation.mainTemplate.hooks.require;
|
||||
// @ts-ignore webpack 5 types compat
|
||||
hookRequire.tap('ReactFreshWebpackPlugin', (source) => {
|
||||
// Webpack 4 evaluates module code on the following line:
|
||||
// ```
|
||||
// modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
|
||||
// ```
|
||||
// https://github.com/webpack/webpack/blob/4c644bf1f7cb067c748a52614500e0e2182b2700/lib/MainTemplate.js#L200
|
||||
const lines = source.split('\n');
|
||||
// @ts-ignore webpack 5 types compat
|
||||
const evalIndex = lines.findIndex((l) => l.includes('modules[moduleId].call('));
|
||||
// Unable to find the module execution, that's OK:
|
||||
if (evalIndex === -1) {
|
||||
return source;
|
||||
}
|
||||
// Legacy CSS implementations will `eval` browser code in a Node.js
|
||||
// context to extract CSS. For backwards compatibility, we need to check
|
||||
// we're in a browser context before continuing.
|
||||
return Template.asString([
|
||||
...lines.slice(0, evalIndex),
|
||||
`
|
||||
var hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;
|
||||
var cleanup = hasRefresh
|
||||
? self.$RefreshInterceptModuleExecution$(moduleId)
|
||||
: function() {};
|
||||
try {
|
||||
`,
|
||||
lines[evalIndex],
|
||||
`
|
||||
} finally {
|
||||
cleanup();
|
||||
}
|
||||
`,
|
||||
...lines.slice(evalIndex + 1),
|
||||
]);
|
||||
});
|
||||
});
|
||||
}
|
||||
function webpack5(compiler) {
|
||||
const { RuntimeGlobals, RuntimeModule, Template } = this;
|
||||
class ReactRefreshRuntimeModule extends RuntimeModule {
|
||||
constructor() {
|
||||
super('react refresh', 5);
|
||||
}
|
||||
generate() {
|
||||
const { runtimeTemplate } = this.compilation;
|
||||
return Template.asString([
|
||||
`if (${RuntimeGlobals.interceptModuleExecution}) {`,
|
||||
`${RuntimeGlobals.interceptModuleExecution}.push(${runtimeTemplate.basicFunction('options', [
|
||||
`${runtimeTemplate.supportsConst() ? 'const' : 'var'} originalFactory = options.factory;`,
|
||||
`options.factory = ${runtimeTemplate.basicFunction('moduleObject, moduleExports, webpackRequire', [
|
||||
// If the original factory is missing, e.g. due to race condition
|
||||
// when compiling multiple entries concurrently, recover by doing
|
||||
// a full page reload.
|
||||
'if (!originalFactory) {',
|
||||
Template.indent('document.location.reload();'),
|
||||
Template.indent('return;'),
|
||||
'}',
|
||||
// Legacy CSS implementations will `eval` browser code in a Node.js
|
||||
// context to extract CSS. For backwards compatibility, we need to check
|
||||
// we're in a browser context before continuing.
|
||||
`${runtimeTemplate.supportsConst() ? 'const' : 'var'} hasRefresh = typeof self !== "undefined" && !!self.$RefreshInterceptModuleExecution$;`,
|
||||
`${runtimeTemplate.supportsConst() ? 'const' : 'var'} cleanup = hasRefresh ? self.$RefreshInterceptModuleExecution$(moduleObject.id) : ${runtimeTemplate.supportsArrowFunction()
|
||||
? '() => {}'
|
||||
: 'function() {}'};`,
|
||||
'try {',
|
||||
Template.indent('originalFactory.call(this, moduleObject, moduleExports, webpackRequire);'),
|
||||
'} finally {',
|
||||
Template.indent(`cleanup();`),
|
||||
'}',
|
||||
])}`,
|
||||
])})`,
|
||||
'}',
|
||||
]);
|
||||
}
|
||||
}
|
||||
// @ts-ignore webpack 5 types compat
|
||||
compiler.hooks.compilation.tap('ReactFreshWebpackPlugin', (compilation) => {
|
||||
injectRefreshFunctions(compilation, Template);
|
||||
compilation.hooks.additionalTreeRuntimeRequirements.tap('ReactFreshWebpackPlugin', (chunk) => {
|
||||
compilation.addRuntimeModule(chunk, new ReactRefreshRuntimeModule());
|
||||
});
|
||||
});
|
||||
}
|
||||
class ReactFreshWebpackPlugin {
|
||||
constructor({ version, RuntimeGlobals, RuntimeModule, Template, } = require('webpack')) {
|
||||
this.webpackMajorVersion = parseInt(version !== null && version !== void 0 ? version : '', 10);
|
||||
this.RuntimeGlobals = RuntimeGlobals;
|
||||
this.RuntimeModule = RuntimeModule;
|
||||
this.Template = Template;
|
||||
}
|
||||
apply(compiler) {
|
||||
switch (this.webpackMajorVersion) {
|
||||
case 4: {
|
||||
webpack4.call(this, compiler);
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
webpack5.call(this, compiler);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
throw new Error(`ReactFreshWebpackPlugin does not support webpack v${this.webpackMajorVersion}.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.default = ReactFreshWebpackPlugin;
|
||||
//# sourceMappingURL=ReactRefreshWebpackPlugin.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ReactRefreshWebpackPlugin.js","sourceRoot":"","sources":["../ReactRefreshWebpackPlugin.ts"],"names":[],"mappings":";;AAQA,kCAAkC;AAClC,SAAS,sBAAsB,CAC7B,WAA+B,EAC/B,QAAgC;IAEhC,MAAM,QAAQ,GAAS,WAAW,CAAC,YAAY,CAAC,KAAa,CAAC,SAAS,CAAA;IAEvE,QAAQ,CAAC,GAAG,CAAC,yBAAyB,EAAE,CAAC,MAAc,EAAE,EAAE,CACzD,QAAQ,CAAC,QAAQ,CAAC;QAChB,MAAM;QACN,EAAE;QACF,6DAA6D;QAC7D,oCAAoC;QACpC,QAAQ,CAAC,MAAM,CAAC,qCAAqC,CAAC;QACtD,QAAQ,CAAC,MAAM,CAAC,mCAAmC,CAAC;QACpD,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;QAC5D,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC;QACrB,GAAG;KACJ,CAAC,CACH,CAAA;AACH,CAAC;AAED,SAAS,QAAQ,CAAgC,QAAyB;IACxE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAA;IACzB,oEAAoE;IACpE,aAAa;IACb,2EAA2E;IAC3E,qDAAqD;IACrD,4GAA4G;IAE5G,QAAQ,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,yBAAyB,EAAE,CAAC,WAAW,EAAE,EAAE;QACxE,sBAAsB,CAAC,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,CAAC,KAAK,EAAE,IAAI,yBAAyB,EAAE,CAAC,CAAA;QACtE,CAAC,CACF,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,uBAAuB;IAO3B,YACE,EACE,OAAO,EACP,cAAc,EACd,aAAa,EACb,QAAQ,MACN,OAAO,CAAC,SAAS,CAA6B;QAElD,IAAI,CAAC,mBAAmB,GAAG,QAAQ,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EAAE,EAAE,CAAC,CAAA;QACtD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;IACD,KAAK,CAAC,QAAyB;QAC7B,QAAQ,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACjC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACP,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;gBAC7B,MAAK;YACP,CAAC;YACD,KAAK,CAAC,CAAC,CAAC,CAAC;gBACP,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;gBAC7B,MAAK;YACP,CAAC;YACD,OAAO,CAAC,CAAC,CAAC;gBACR,MAAM,IAAI,KAAK,CACb,qDAAqD,IAAI,CAAC,mBAAmB,GAAG,CACjF,CAAA;YACH,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,kBAAe,uBAAuB,CAAA"}
|
||||
Generated
Vendored
+69
@@ -0,0 +1,69 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = default_1;
|
||||
// This function gets unwrapped into global scope, which is why we don't invert
|
||||
// if-blocks. Also, you cannot use `return`.
|
||||
function default_1() {
|
||||
// Wrapped in an IIFE to avoid polluting the global scope
|
||||
;
|
||||
(function () {
|
||||
var _a, _b;
|
||||
// Legacy CSS implementations will `eval` browser code in a Node.js context
|
||||
// to extract CSS. For backwards compatibility, we need to check we're in a
|
||||
// browser context before continuing.
|
||||
if (typeof self !== 'undefined' &&
|
||||
// No-JS mode does not inject these helpers:
|
||||
'$RefreshHelpers$' in self) {
|
||||
// @ts-ignore __webpack_module__ is global
|
||||
var currentExports = __webpack_module__.exports;
|
||||
// @ts-ignore __webpack_module__ is global
|
||||
var prevSignature = (_b = (_a = __webpack_module__.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;
|
||||
// This cannot happen in MainTemplate because the exports mismatch between
|
||||
// templating and execution.
|
||||
self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, __webpack_module__.id);
|
||||
// A module can be accepted automatically based on its exports, e.g. when
|
||||
// it is a Refresh Boundary.
|
||||
if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {
|
||||
// Save the previous exports signature on update so we can compare the boundary
|
||||
// signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797)
|
||||
__webpack_module__.hot.dispose(function (data) {
|
||||
data.prevSignature =
|
||||
self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports);
|
||||
});
|
||||
// Unconditionally accept an update to this module, we'll check if it's
|
||||
// still a Refresh Boundary later.
|
||||
// @ts-ignore importMeta is replaced in the loader
|
||||
global.importMeta.webpackHot.accept();
|
||||
// This field is set when the previous version of this module was a
|
||||
// Refresh Boundary, letting us know we need to check for invalidation or
|
||||
// enqueue an update.
|
||||
if (prevSignature !== null) {
|
||||
// A boundary can become ineligible if its exports are incompatible
|
||||
// with the previous exports.
|
||||
//
|
||||
// For example, if you add/remove/change exports, we'll want to
|
||||
// re-execute the importing modules, and force those components to
|
||||
// re-render. Similarly, if you convert a class component to a
|
||||
// function, we want to invalidate the boundary.
|
||||
if (self.$RefreshHelpers$.shouldInvalidateReactRefreshBoundary(prevSignature, self.$RefreshHelpers$.getRefreshBoundarySignature(currentExports))) {
|
||||
__webpack_module__.hot.invalidate();
|
||||
}
|
||||
else {
|
||||
self.$RefreshHelpers$.scheduleUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Since we just executed the code for the module, it's possible that the
|
||||
// new exports made it ineligible for being a boundary.
|
||||
// We only care about the case when we were _previously_ a boundary,
|
||||
// because we already accepted this update (accidental side effect).
|
||||
var isNoLongerABoundary = prevSignature !== null;
|
||||
if (isNoLongerABoundary) {
|
||||
__webpack_module__.hot.invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
}
|
||||
//# sourceMappingURL=ReactRefreshModule.runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ReactRefreshModule.runtime.js","sourceRoot":"","sources":["../../internal/ReactRefreshModule.runtime.ts"],"names":[],"mappings":";;AAkBA,4BAwEC;AA1ED,+EAA+E;AAC/E,4CAA4C;AAC5C;IACE,yDAAyD;IACzD,CAAC;IAAA,CAAC;;QACA,2EAA2E;QAC3E,2EAA2E;QAC3E,qCAAqC;QACrC,IACE,OAAO,IAAI,KAAK,WAAW;YAC3B,4CAA4C;YAC5C,kBAAkB,IAAI,IAAI,EAC1B,CAAC;YACD,0CAA0C;YAC1C,IAAI,cAAc,GAAG,kBAAkB,CAAC,OAAO,CAAA;YAC/C,0CAA0C;YAC1C,IAAI,aAAa,GACf,MAAA,MAAA,kBAAkB,CAAC,GAAG,CAAC,IAAI,0CAAE,aAAa,mCAAI,IAAI,CAAA;YAEpD,0EAA0E;YAC1E,4BAA4B;YAC5B,IAAI,CAAC,gBAAgB,CAAC,8BAA8B,CAClD,cAAc,EACd,kBAAkB,CAAC,EAAE,CACtB,CAAA;YAED,yEAAyE;YACzE,4BAA4B;YAC5B,IAAI,IAAI,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,cAAc,CAAC,EAAE,CAAC;gBACjE,+EAA+E;gBAC/E,6HAA6H;gBAC7H,kBAAkB,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,IAAI;oBAC3C,IAAI,CAAC,aAAa;wBAChB,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,cAAc,CAAC,CAAA;gBACrE,CAAC,CAAC,CAAA;gBACF,uEAAuE;gBACvE,kCAAkC;gBAClC,kDAAkD;gBAClD,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,MAAM,EAAE,CAAA;gBAErC,mEAAmE;gBACnE,yEAAyE;gBACzE,qBAAqB;gBACrB,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;oBAC3B,mEAAmE;oBACnE,6BAA6B;oBAC7B,EAAE;oBACF,+DAA+D;oBAC/D,kEAAkE;oBAClE,8DAA8D;oBAC9D,gDAAgD;oBAChD,IACE,IAAI,CAAC,gBAAgB,CAAC,oCAAoC,CACxD,aAAa,EACb,IAAI,CAAC,gBAAgB,CAAC,2BAA2B,CAAC,cAAc,CAAC,CAClE,EACD,CAAC;wBACD,kBAAkB,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;oBACrC,CAAC;yBAAM,CAAC;wBACN,IAAI,CAAC,gBAAgB,CAAC,cAAc,EAAE,CAAA;oBACxC,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,yEAAyE;gBACzE,uDAAuD;gBACvD,oEAAoE;gBACpE,oEAAoE;gBACpE,IAAI,mBAAmB,GAAG,aAAa,KAAK,IAAI,CAAA;gBAChD,IAAI,mBAAmB,EAAE,CAAC;oBACxB,kBAAkB,CAAC,GAAG,CAAC,UAAU,EAAE,CAAA;gBACrC,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC,CAAC,EAAE,CAAA;AACN,CAAC"}
|
||||
Generated
Vendored
+86
@@ -0,0 +1,86 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createSignatureFunctionForTransform = exports.register = void 0;
|
||||
exports.refresh = refresh;
|
||||
const helpers_1 = __importDefault(require("./helpers"));
|
||||
// Extracts exports from a webpack module object.
|
||||
function getModuleExports(moduleId) {
|
||||
if (typeof moduleId === 'undefined') {
|
||||
// `moduleId` is unavailable, which indicates that this module is not in the cache,
|
||||
// which means we won't be able to capture any exports,
|
||||
// and thus they cannot be refreshed safely.
|
||||
// These are likely runtime or dynamically generated modules.
|
||||
return {};
|
||||
}
|
||||
var maybeModule = __webpack_require__.c[moduleId];
|
||||
if (typeof maybeModule === 'undefined') {
|
||||
// `moduleId` is available but the module in cache is unavailable,
|
||||
// which indicates the module is somehow corrupted (e.g. broken Webpack `module` globals).
|
||||
// We will warn the user (as this is likely a mistake) and assume they cannot be refreshed.
|
||||
console.warn('[React Refresh] Failed to get exports for module: ' + moduleId + '.');
|
||||
return {};
|
||||
}
|
||||
var exportsOrPromise = maybeModule.exports;
|
||||
if (typeof Promise !== 'undefined' && exportsOrPromise instanceof Promise) {
|
||||
return exportsOrPromise.then(function (exports) {
|
||||
return exports;
|
||||
});
|
||||
}
|
||||
return exportsOrPromise;
|
||||
}
|
||||
function executeRuntime(moduleExports, moduleId, webpackHot) {
|
||||
var _a, _b;
|
||||
helpers_1.default.registerExportsForReactRefresh(moduleExports, moduleId);
|
||||
if (webpackHot) {
|
||||
var isHotUpdate = !!webpackHot.data;
|
||||
var prevSignature = (_b = (_a = webpackHot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;
|
||||
if (helpers_1.default.isReactRefreshBoundary(moduleExports)) {
|
||||
webpackHot.dispose(
|
||||
// Save the previous exports signature on update so we can compare the boundary
|
||||
// signatures. We avoid saving exports themselves since it causes memory leaks (https://github.com/vercel/next.js/pull/53797)
|
||||
function hotDisposeCallback(data) {
|
||||
data.prevSignature =
|
||||
helpers_1.default.getRefreshBoundarySignature(moduleExports);
|
||||
});
|
||||
webpackHot.accept();
|
||||
// This field is set when the previous version of this module was a
|
||||
// Refresh Boundary, letting us know we need to check for invalidation or
|
||||
// enqueue an update.
|
||||
if (prevSignature !== null) {
|
||||
if (isHotUpdate) {
|
||||
if (helpers_1.default.shouldInvalidateReactRefreshBoundary(prevSignature, helpers_1.default.getRefreshBoundarySignature(moduleExports))) {
|
||||
webpackHot.invalidate();
|
||||
}
|
||||
else {
|
||||
helpers_1.default.scheduleUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (isHotUpdate && prevSignature !== null) {
|
||||
webpackHot.invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Port from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/loader/utils/getRefreshModuleRuntime.js#L29
|
||||
function refresh(moduleId, webpackHot) {
|
||||
const currentExports = getModuleExports(moduleId);
|
||||
const fn = (exports) => {
|
||||
executeRuntime(exports, moduleId, webpackHot);
|
||||
};
|
||||
if (typeof Promise !== 'undefined' && currentExports instanceof Promise) {
|
||||
currentExports.then(fn);
|
||||
}
|
||||
else {
|
||||
fn(currentExports);
|
||||
}
|
||||
}
|
||||
var runtime_1 = require("next/dist/compiled/react-refresh/runtime");
|
||||
Object.defineProperty(exports, "register", { enumerable: true, get: function () { return runtime_1.register; } });
|
||||
Object.defineProperty(exports, "createSignatureFunctionForTransform", { enumerable: true, get: function () { return runtime_1.createSignatureFunctionForTransform; } });
|
||||
//# sourceMappingURL=RspackReactRefresh.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"RspackReactRefresh.js","sourceRoot":"","sources":["../../internal/RspackReactRefresh.ts"],"names":[],"mappings":";;;;;;AAgFA,0BAUC;AA1FD,wDAAsC;AAMtC,iDAAiD;AACjD,SAAS,gBAAgB,CAAC,QAAgB;IACxC,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,CAAC;QACpC,mFAAmF;QACnF,uDAAuD;QACvD,4CAA4C;QAC5C,6DAA6D;QAC7D,OAAO,EAAE,CAAA;IACX,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C3B,IAAI,WAAW,EAAE,CAAC;oBAChB,IACE,iBAAc,CAAC,oCAAoC,CACjD,aAAa,EACb,iBAAc,CAAC,2BAA2B,CAAC,aAAa,CAAC,CAC1D,EACD,CAAC;wBACD,UAAU,CAAC,UAAU,EAAE,CAAA;oBACzB,CAAC;yBAAM,CAAC;wBACN,iBAAc,CAAC,cAAc,EAAE,CAAA;oBACjC,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,WAAW,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;gBAC1C,UAAU,CAAC,UAAU,EAAE,CAAA;YACzB,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC;AAED,yHAAyH;AACzH,SAAgB,OAAO,CAAC,QAAQ,EAAE,UAAU;IAC1C,MAAM,cAAc,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAA;IACjD,MAAM,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE;QACrB,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;IAC/C,CAAC,CAAA;IACD,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,cAAc,YAAY,OAAO,EAAE,CAAC;QACxE,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACzB,CAAC;SAAM,CAAC;QACN,EAAE,CAAC,cAAc,CAAC,CAAA;IACpB,CAAC;AACH,CAAC;AAED,iDAG8B;AAF5B,mGAAA,QAAQ,OAAA;AACR,8HAAA,mCAAmC,OAAA"}
|
||||
Generated
Vendored
+170
@@ -0,0 +1,170 @@
|
||||
"use strict";
|
||||
/**
|
||||
* MIT License
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
// This file is copied from the Metro JavaScript bundler, with minor tweaks for
|
||||
// webpack 4 compatibility.
|
||||
//
|
||||
// https://github.com/facebook/metro/blob/d6b9685c730d0d63577db40f41369157f28dfa3a/packages/metro/src/lib/polyfills/require.js
|
||||
const runtime_1 = __importDefault(require("next/dist/compiled/react-refresh/runtime"));
|
||||
function isSafeExport(key) {
|
||||
return (key === '__esModule' ||
|
||||
key === '__N_SSG' ||
|
||||
key === '__N_SSP' ||
|
||||
// TODO: remove this key from page config instead of allow listing it
|
||||
key === 'config');
|
||||
}
|
||||
function registerExportsForReactRefresh(moduleExports, moduleID) {
|
||||
runtime_1.default.register(moduleExports, moduleID + ' %exports%');
|
||||
if (moduleExports == null || typeof moduleExports !== 'object') {
|
||||
// Exit if we can't iterate over exports.
|
||||
// (This is important for legacy environments.)
|
||||
return;
|
||||
}
|
||||
for (var key in moduleExports) {
|
||||
if (isSafeExport(key)) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
var exportValue = moduleExports[key];
|
||||
}
|
||||
catch (_a) {
|
||||
// This might fail due to circular dependencies
|
||||
continue;
|
||||
}
|
||||
var typeID = moduleID + ' %exports% ' + key;
|
||||
runtime_1.default.register(exportValue, typeID);
|
||||
}
|
||||
}
|
||||
function getRefreshBoundarySignature(moduleExports) {
|
||||
var signature = [];
|
||||
signature.push(runtime_1.default.getFamilyByType(moduleExports));
|
||||
if (moduleExports == null || typeof moduleExports !== 'object') {
|
||||
// Exit if we can't iterate over exports.
|
||||
// (This is important for legacy environments.)
|
||||
return signature;
|
||||
}
|
||||
for (var key in moduleExports) {
|
||||
if (isSafeExport(key)) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
var exportValue = moduleExports[key];
|
||||
}
|
||||
catch (_a) {
|
||||
// This might fail due to circular dependencies
|
||||
continue;
|
||||
}
|
||||
signature.push(key);
|
||||
signature.push(runtime_1.default.getFamilyByType(exportValue));
|
||||
}
|
||||
return signature;
|
||||
}
|
||||
function isReactRefreshBoundary(moduleExports) {
|
||||
if (runtime_1.default.isLikelyComponentType(moduleExports)) {
|
||||
return true;
|
||||
}
|
||||
if (moduleExports == null || typeof moduleExports !== 'object') {
|
||||
// Exit if we can't iterate over exports.
|
||||
return false;
|
||||
}
|
||||
var hasExports = false;
|
||||
var areAllExportsComponents = true;
|
||||
for (var key in moduleExports) {
|
||||
hasExports = true;
|
||||
if (isSafeExport(key)) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
var exportValue = moduleExports[key];
|
||||
}
|
||||
catch (_a) {
|
||||
// This might fail due to circular dependencies
|
||||
return false;
|
||||
}
|
||||
if (!runtime_1.default.isLikelyComponentType(exportValue)) {
|
||||
areAllExportsComponents = false;
|
||||
}
|
||||
}
|
||||
return hasExports && areAllExportsComponents;
|
||||
}
|
||||
function shouldInvalidateReactRefreshBoundary(prevSignature, nextSignature) {
|
||||
if (prevSignature.length !== nextSignature.length) {
|
||||
return true;
|
||||
}
|
||||
for (var i = 0; i < nextSignature.length; i++) {
|
||||
if (prevSignature[i] !== nextSignature[i]) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
var isUpdateScheduled = false;
|
||||
// This function aggregates updates from multiple modules into a single React Refresh call.
|
||||
function scheduleUpdate() {
|
||||
if (isUpdateScheduled) {
|
||||
return;
|
||||
}
|
||||
isUpdateScheduled = true;
|
||||
function canApplyUpdate(status) {
|
||||
return status === 'idle';
|
||||
}
|
||||
function applyUpdate() {
|
||||
isUpdateScheduled = false;
|
||||
try {
|
||||
runtime_1.default.performReactRefresh();
|
||||
}
|
||||
catch (err) {
|
||||
console.warn('Warning: Failed to re-render. We will retry on the next Fast Refresh event.\n' +
|
||||
err);
|
||||
}
|
||||
}
|
||||
if (canApplyUpdate(module.hot.status())) {
|
||||
// Apply update on the next tick.
|
||||
Promise.resolve().then(() => {
|
||||
applyUpdate();
|
||||
});
|
||||
return;
|
||||
}
|
||||
const statusHandler = (status) => {
|
||||
if (canApplyUpdate(status)) {
|
||||
module.hot.removeStatusHandler(statusHandler);
|
||||
applyUpdate();
|
||||
}
|
||||
};
|
||||
// Apply update once the HMR runtime's status is idle.
|
||||
module.hot.addStatusHandler(statusHandler);
|
||||
}
|
||||
// Needs to be compatible with IE11
|
||||
exports.default = {
|
||||
registerExportsForReactRefresh: registerExportsForReactRefresh,
|
||||
isReactRefreshBoundary: isReactRefreshBoundary,
|
||||
shouldInvalidateReactRefreshBoundary: shouldInvalidateReactRefreshBoundary,
|
||||
getRefreshBoundarySignature: getRefreshBoundarySignature,
|
||||
scheduleUpdate: scheduleUpdate,
|
||||
};
|
||||
//# sourceMappingURL=helpers.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../internal/helpers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;AAEH,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,WAAW,EAAE,CAAA;QACf,CAAC;IACH,CAAC,CAAA;IAED,sDAAsD;IACtD,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAA;AAC5C,CAAC;AAED,mCAAmC;AACnC,kBAAe;IACb,8BAA8B,EAAE,8BAA8B;IAC9D,sBAAsB,EAAE,sBAAsB;IAC9C,oCAAoC,EAAE,oCAAoC;IAC1E,2BAA2B,EAAE,2BAA2B;IACxD,cAAc,EAAE,cAAc;CAC/B,CAAA"}
|
||||
Generated
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const ReactRefreshModule_runtime_1 = __importDefault(require("./internal/ReactRefreshModule.runtime"));
|
||||
let refreshModuleRuntime = ReactRefreshModule_runtime_1.default.toString();
|
||||
refreshModuleRuntime = refreshModuleRuntime
|
||||
.slice(refreshModuleRuntime.indexOf('{') + 1, refreshModuleRuntime.lastIndexOf('}'))
|
||||
// Given that the import above executes the module we need to make sure it does not crash on `import.meta` not being allowed.
|
||||
.replace('global.importMeta', 'import.meta');
|
||||
let commonJsrefreshModuleRuntime = refreshModuleRuntime.replace('import.meta.webpackHot', 'module.hot');
|
||||
const ReactRefreshLoader = function ReactRefreshLoader(source, inputSourceMap) {
|
||||
this.callback(null, `${source}\n\n;${
|
||||
// Account for commonjs not supporting `import.meta
|
||||
this.resourcePath.endsWith('.cjs')
|
||||
? commonJsrefreshModuleRuntime
|
||||
: refreshModuleRuntime}`, inputSourceMap);
|
||||
};
|
||||
exports.default = ReactRefreshLoader;
|
||||
//# sourceMappingURL=loader.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../loader.ts"],"names":[],"mappings":";;;;;AACA,uGAAwE;AAExE,IAAI,oBAAoB,GAAG,oCAAoB,CAAC,QAAQ,EAAE,CAAA;AAC1D,oBAAoB,GAAG,oBAAoB;KACxC,KAAK,CACJ,oBAAoB,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EACrC,oBAAoB,CAAC,WAAW,CAAC,GAAG,CAAC,CACtC;IACD,6HAA6H;KAC5H,OAAO,CAAC,mBAAmB,EAAE,aAAa,CAAC,CAAA;AAE9C,IAAI,4BAA4B,GAAG,oBAAoB,CAAC,OAAO,CAC7D,wBAAwB,EACxB,YAAY,CACb,CAAA;AAED,MAAM,kBAAkB,GAAqB,SAAS,kBAAkB,CACtE,MAAM,EACN,cAAc;IAEd,IAAI,CAAC,QAAQ,CACX,IAAI,EACJ,GAAG,MAAM,QAAQ;IACf,mDAAmD;IACnD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;QAChC,CAAC,CAAC,4BAA4B;QAC9B,CAAC,CAAC,oBACN,EAAE,EACF,cAAc,CACf,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,kBAAkB,CAAA"}
|
||||
Generated
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const runtime_1 = __importDefault(require("next/dist/compiled/react-refresh/runtime"));
|
||||
if (typeof self !== 'undefined') {
|
||||
var $RefreshInjected$ = '__reactRefreshInjected';
|
||||
// Only inject the runtime if it hasn't been injected
|
||||
if (!self[$RefreshInjected$]) {
|
||||
runtime_1.default.injectIntoGlobalHook(self);
|
||||
// Empty implementation to avoid "ReferenceError: variable is not defined" in module which didn't pass builtin:react-refresh-loader
|
||||
self.$RefreshSig$ = () => (type) => type;
|
||||
self.$RefreshReg$ = () => { };
|
||||
// Mark the runtime as injected to prevent double-injection
|
||||
self[$RefreshInjected$] = true;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=rspack-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"rspack-runtime.js","sourceRoot":"","sources":["../rspack-runtime.ts"],"names":[],"mappings":";;;;;AAAA,oEAAkD;AAKlD,IAAI,OAAO,IAAI,KAAK,WAAW,EAAE,CAAC;IAChC,IAAI,iBAAiB,GAAG,wBAAwB,CAAA;IAEhD,qDAAqD;IACrD,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAC7B,iBAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;QAEzC,mIAAmI;QACnI,IAAI,CAAC,YAAY,GAAG,GAAG,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAA;QACxC,IAAI,CAAC,YAAY,GAAG,GAAG,EAAE,GAAE,CAAC,CAAA;QAE5B,2DAA2D;QAC3D,IAAI,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;IAChC,CAAC;AACH,CAAC"}
|
||||
Generated
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const runtime_1 = __importDefault(require("next/dist/compiled/react-refresh/runtime"));
|
||||
const helpers_1 = __importDefault(require("./internal/helpers"));
|
||||
// Hook into ReactDOM initialization
|
||||
runtime_1.default.injectIntoGlobalHook(self);
|
||||
// Register global helpers
|
||||
self.$RefreshHelpers$ = helpers_1.default;
|
||||
// Register a helper for module execution interception
|
||||
self.$RefreshInterceptModuleExecution$ = function (webpackModuleId) {
|
||||
var prevRefreshReg = self.$RefreshReg$;
|
||||
var prevRefreshSig = self.$RefreshSig$;
|
||||
self.$RefreshReg$ = function (type, id) {
|
||||
runtime_1.default.register(type, webpackModuleId + ' ' + id);
|
||||
};
|
||||
self.$RefreshSig$ = runtime_1.default.createSignatureFunctionForTransform;
|
||||
// Modeled after `useEffect` cleanup pattern:
|
||||
// https://react.dev/learn/synchronizing-with-effects#step-3-add-cleanup-if-needed
|
||||
return function () {
|
||||
self.$RefreshReg$ = prevRefreshReg;
|
||||
self.$RefreshSig$ = prevRefreshSig;
|
||||
};
|
||||
};
|
||||
//# sourceMappingURL=runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../runtime.ts"],"names":[],"mappings":";;;;;AAAA,oEAAkD;AAClD,iEAA+C;AAW/C,oCAAoC;AACpC,iBAAc,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAA;AAEzC,0BAA0B;AAC1B,IAAI,CAAC,gBAAgB,GAAG,iBAAc,CAAA;AAEtC,sDAAsD;AACtD,IAAI,CAAC,iCAAiC,GAAG,UAAU,eAAe;IAChE,IAAI,cAAc,GAAG,IAAI,CAAC,YAAY,CAAA;IACtC,IAAI,cAAc,GAAG,IAAI,CAAC,YAAY,CAAA;IAEtC,IAAI,CAAC,YAAY,GAAG,UAAU,IAAI,EAAE,EAAE;QACpC,iBAAc,CAAC,QAAQ,CAAC,IAAI,EAAE,eAAe,GAAG,GAAG,GAAG,EAAE,CAAC,CAAA;IAC3D,CAAC,CAAA;IACD,IAAI,CAAC,YAAY,GAAG,iBAAc,CAAC,mCAAmC,CAAA;IAEtE,6CAA6C;IAC7C,kFAAkF;IAClF,OAAO;QACL,IAAI,CAAC,YAAY,GAAG,cAAc,CAAA;QAClC,IAAI,CAAC,YAAY,GAAG,cAAc,CAAA;IACpC,CAAC,CAAA;AACH,CAAC,CAAA"}
|
||||
Reference in New Issue
Block a user