From 3efdaf49912b4652751d7e172bab78e153070147 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 1 Feb 2025 16:15:13 +0800 Subject: [PATCH] test: update snapshots --- .../__snapshots__/web/1.snap.txt | 16 ++++---- .../__snapshots__/web/1.snap.txt | 18 ++++----- .../__snapshots__/web/1.snap.txt | 18 ++++----- .../__snapshots__/web/1.snap.txt | 14 +++---- .../__snapshots__/web/1.snap.txt | 14 +++---- .../jsx/basic/__snapshots__/web/1.snap.txt | 10 ++--- .../jsx/basic/__snapshots__/web/2.snap.txt | 10 ++--- .../jsx/child/__snapshots__/web/1.snap.txt | 16 ++++---- .../jsx/value/__snapshots__/web/1.snap.txt | 10 ++--- .../jsx/value/__snapshots__/web/2.snap.txt | 10 ++--- .../__snapshots__/web/1.snap.txt | 37 +++++++++---------- 11 files changed, 86 insertions(+), 87 deletions(-) diff --git a/test/hotCases/hook/useContext#initial/__snapshots__/web/1.snap.txt b/test/hotCases/hook/useContext#initial/__snapshots__/web/1.snap.txt index eafba79..94589ba 100644 --- a/test/hotCases/hook/useContext#initial/__snapshots__/web/1.snap.txt +++ b/test/hotCases/hook/useContext#initial/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 5136 +- Update: main.LAST_HASH.hot-update.js, size: 5034 ## Manifest @@ -35,11 +35,11 @@ self["webpackHotUpdate"]('main', { "../useContext​#initial/app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); -/* ESM import */var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/dist/compat.module.js"); -/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/hooks/dist/hooks.module.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); +/* ESM import */var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "../../../../node_modules//preact/compat/dist/compat.module.js"); +/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules//preact/hooks/dist/hooks.module.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -59,12 +59,12 @@ function Inner() { theme ] }, void 0, true, { - fileName: "/test/hotCases/hook/useContext#initial/app.jsx", + fileName: "/test/hotCases/hook/useContext#initial/app.jsx", lineNumber: 8, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useContext#initial/app.jsx", + fileName: "/test/hotCases/hook/useContext#initial/app.jsx", lineNumber: 8, columnNumber: 11 }, this); @@ -73,7 +73,7 @@ _s(Inner, "+C1P7ukOg/azcV4AZ819oyezFOE="); _c = Inner; function App() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Inner, {}, void 0, false, { - fileName: "/test/hotCases/hook/useContext#initial/app.jsx", + fileName: "/test/hotCases/hook/useContext#initial/app.jsx", lineNumber: 13, columnNumber: 5 }, this); diff --git a/test/hotCases/hook/useContext#keep/__snapshots__/web/1.snap.txt b/test/hotCases/hook/useContext#keep/__snapshots__/web/1.snap.txt index d61fa95..5f3a351 100644 --- a/test/hotCases/hook/useContext#keep/__snapshots__/web/1.snap.txt +++ b/test/hotCases/hook/useContext#keep/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 5441 +- Update: main.LAST_HASH.hot-update.js, size: 5331 ## Manifest @@ -35,11 +35,11 @@ self["webpackHotUpdate"]('main', { "../useContext​#keep/app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); -/* ESM import */var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/dist/compat.module.js"); -/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/hooks/dist/hooks.module.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); +/* ESM import */var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "../../../../node_modules//preact/compat/dist/compat.module.js"); +/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules//preact/hooks/dist/hooks.module.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -59,12 +59,12 @@ function Inner() { theme ] }, void 0, true, { - fileName: "/test/hotCases/hook/useContext#keep/app.jsx", + fileName: "/test/hotCases/hook/useContext#keep/app.jsx", lineNumber: 8, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useContext#keep/app.jsx", + fileName: "/test/hotCases/hook/useContext#keep/app.jsx", lineNumber: 8, columnNumber: 11 }, this); @@ -75,12 +75,12 @@ function App() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Theme.Provider, { value: "dark", children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Inner, {}, void 0, false, { - fileName: "/test/hotCases/hook/useContext#keep/app.jsx", + fileName: "/test/hotCases/hook/useContext#keep/app.jsx", lineNumber: 14, columnNumber: 7 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useContext#keep/app.jsx", + fileName: "/test/hotCases/hook/useContext#keep/app.jsx", lineNumber: 13, columnNumber: 5 }, this); diff --git a/test/hotCases/hook/useContext#provide/__snapshots__/web/1.snap.txt b/test/hotCases/hook/useContext#provide/__snapshots__/web/1.snap.txt index 3fc09ac..511aad7 100644 --- a/test/hotCases/hook/useContext#provide/__snapshots__/web/1.snap.txt +++ b/test/hotCases/hook/useContext#provide/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 5457 +- Update: main.LAST_HASH.hot-update.js, size: 5347 ## Manifest @@ -35,11 +35,11 @@ self["webpackHotUpdate"]('main', { "../useContext​#provide/app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); -/* ESM import */var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/dist/compat.module.js"); -/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/hooks/dist/hooks.module.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); +/* ESM import */var preact_compat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/compat */ "../../../../node_modules//preact/compat/dist/compat.module.js"); +/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules//preact/hooks/dist/hooks.module.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -59,12 +59,12 @@ function Inner() { theme ] }, void 0, true, { - fileName: "/test/hotCases/hook/useContext#provide/app.jsx", + fileName: "/test/hotCases/hook/useContext#provide/app.jsx", lineNumber: 8, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useContext#provide/app.jsx", + fileName: "/test/hotCases/hook/useContext#provide/app.jsx", lineNumber: 8, columnNumber: 11 }, this); @@ -75,12 +75,12 @@ function App() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Theme.Provider, { value: "light", children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Inner, {}, void 0, false, { - fileName: "/test/hotCases/hook/useContext#provide/app.jsx", + fileName: "/test/hotCases/hook/useContext#provide/app.jsx", lineNumber: 14, columnNumber: 7 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useContext#provide/app.jsx", + fileName: "/test/hotCases/hook/useContext#provide/app.jsx", lineNumber: 13, columnNumber: 5 }, this); diff --git a/test/hotCases/hook/useState#keep/__snapshots__/web/1.snap.txt b/test/hotCases/hook/useState#keep/__snapshots__/web/1.snap.txt index c64193c..de07584 100644 --- a/test/hotCases/hook/useState#keep/__snapshots__/web/1.snap.txt +++ b/test/hotCases/hook/useState#keep/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 4713 +- Update: main.LAST_HASH.hot-update.js, size: 4614 ## Manifest @@ -35,11 +35,11 @@ self["webpackHotUpdate"]('main', { "../useState​#keep/app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swc/helpers/_/_sliced_to_array */ "../../../../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_sliced_to_array.js"); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); -/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/hooks/dist/hooks.module.js"); +/* ESM import */var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swc/helpers/_/_sliced_to_array */ "../../../../node_modules//@swc/helpers/esm/_sliced_to_array.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); +/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules//preact/hooks/dist/hooks.module.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -57,12 +57,12 @@ function App() { theme ] }, void 0, true, { - fileName: "/test/hotCases/hook/useState#keep/app.jsx", + fileName: "/test/hotCases/hook/useState#keep/app.jsx", lineNumber: 6, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useState#keep/app.jsx", + fileName: "/test/hotCases/hook/useState#keep/app.jsx", lineNumber: 6, columnNumber: 11 }, this); diff --git a/test/hotCases/hook/useState#reset/__snapshots__/web/1.snap.txt b/test/hotCases/hook/useState#reset/__snapshots__/web/1.snap.txt index 81aed6b..b00d36a 100644 --- a/test/hotCases/hook/useState#reset/__snapshots__/web/1.snap.txt +++ b/test/hotCases/hook/useState#reset/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 4605 +- Update: main.LAST_HASH.hot-update.js, size: 4506 ## Manifest @@ -35,11 +35,11 @@ self["webpackHotUpdate"]('main', { "../useState​#reset/app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swc/helpers/_/_sliced_to_array */ "../../../../node_modules/.pnpm/@swc+helpers@0.5.13/node_modules/@swc/helpers/esm/_sliced_to_array.js"); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); -/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/hooks/dist/hooks.module.js"); +/* ESM import */var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @swc/helpers/_/_sliced_to_array */ "../../../../node_modules//@swc/helpers/esm/_sliced_to_array.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); +/* ESM import */var preact_hooks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! preact/hooks */ "../../../../node_modules//preact/hooks/dist/hooks.module.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -56,12 +56,12 @@ function App() { theme ] }, void 0, true, { - fileName: "/test/hotCases/hook/useState#reset/app.jsx", + fileName: "/test/hotCases/hook/useState#reset/app.jsx", lineNumber: 5, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/hook/useState#reset/app.jsx", + fileName: "/test/hotCases/hook/useState#reset/app.jsx", lineNumber: 5, columnNumber: 11 }, this); diff --git a/test/hotCases/jsx/basic/__snapshots__/web/1.snap.txt b/test/hotCases/jsx/basic/__snapshots__/web/1.snap.txt index 218db07..557675f 100644 --- a/test/hotCases/jsx/basic/__snapshots__/web/1.snap.txt +++ b/test/hotCases/jsx/basic/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 3818 +- Update: main.LAST_HASH.hot-update.js, size: 3766 ## Manifest @@ -35,9 +35,9 @@ self["webpackHotUpdate"]('main', { "./app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -46,12 +46,12 @@ function App() { children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: "content 2" }, void 0, false, { - fileName: "/test/hotCases/jsx/basic/app.jsx", + fileName: "/test/hotCases/jsx/basic/app.jsx", lineNumber: 2, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/basic/app.jsx", + fileName: "/test/hotCases/jsx/basic/app.jsx", lineNumber: 2, columnNumber: 11 }, this); diff --git a/test/hotCases/jsx/basic/__snapshots__/web/2.snap.txt b/test/hotCases/jsx/basic/__snapshots__/web/2.snap.txt index 8787fba..2b5ab57 100644 --- a/test/hotCases/jsx/basic/__snapshots__/web/2.snap.txt +++ b/test/hotCases/jsx/basic/__snapshots__/web/2.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 3818 +- Update: main.LAST_HASH.hot-update.js, size: 3766 ## Manifest @@ -35,9 +35,9 @@ self["webpackHotUpdate"]('main', { "./app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -46,12 +46,12 @@ function App() { children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: "content 3" }, void 0, false, { - fileName: "/test/hotCases/jsx/basic/app.jsx", + fileName: "/test/hotCases/jsx/basic/app.jsx", lineNumber: 2, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/basic/app.jsx", + fileName: "/test/hotCases/jsx/basic/app.jsx", lineNumber: 2, columnNumber: 11 }, this); diff --git a/test/hotCases/jsx/child/__snapshots__/web/1.snap.txt b/test/hotCases/jsx/child/__snapshots__/web/1.snap.txt index 495d409..1b21b8c 100644 --- a/test/hotCases/jsx/child/__snapshots__/web/1.snap.txt +++ b/test/hotCases/jsx/child/__snapshots__/web/1.snap.txt @@ -7,7 +7,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 7269 +- Update: main.LAST_HASH.hot-update.js, size: 7173 ## Manifest @@ -37,9 +37,9 @@ self["webpackHotUpdate"]('main', { "./app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* ESM import */var _child__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./child */ "./child.jsx"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -48,12 +48,12 @@ __webpack_require__.d(__webpack_exports__, { function App() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("div", { children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_child__WEBPACK_IMPORTED_MODULE_1__.Child, {}, void 0, false, { - fileName: "/test/hotCases/jsx/child/app.jsx", + fileName: "/test/hotCases/jsx/child/app.jsx", lineNumber: 4, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/child/app.jsx", + fileName: "/test/hotCases/jsx/child/app.jsx", lineNumber: 4, columnNumber: 11 }, this); @@ -140,9 +140,9 @@ if (moduleHot) { "./child.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - Child: function() { return Child; } + Child: () => (Child) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -150,7 +150,7 @@ function Child() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: "has child" }, void 0, false, { - fileName: "/test/hotCases/jsx/child/child.jsx", + fileName: "/test/hotCases/jsx/child/child.jsx", lineNumber: 2, columnNumber: 11 }, this); diff --git a/test/hotCases/jsx/value/__snapshots__/web/1.snap.txt b/test/hotCases/jsx/value/__snapshots__/web/1.snap.txt index b0aa6b6..0bcbe20 100644 --- a/test/hotCases/jsx/value/__snapshots__/web/1.snap.txt +++ b/test/hotCases/jsx/value/__snapshots__/web/1.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 3841 +- Update: main.LAST_HASH.hot-update.js, size: 3789 ## Manifest @@ -35,9 +35,9 @@ self["webpackHotUpdate"]('main', { "./app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -47,12 +47,12 @@ function App() { children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: value }, void 0, false, { - fileName: "/test/hotCases/jsx/value/app.jsx", + fileName: "/test/hotCases/jsx/value/app.jsx", lineNumber: 3, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/value/app.jsx", + fileName: "/test/hotCases/jsx/value/app.jsx", lineNumber: 3, columnNumber: 11 }, this); diff --git a/test/hotCases/jsx/value/__snapshots__/web/2.snap.txt b/test/hotCases/jsx/value/__snapshots__/web/2.snap.txt index f42b4ae..e185b57 100644 --- a/test/hotCases/jsx/value/__snapshots__/web/2.snap.txt +++ b/test/hotCases/jsx/value/__snapshots__/web/2.snap.txt @@ -6,7 +6,7 @@ ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 3841 +- Update: main.LAST_HASH.hot-update.js, size: 3789 ## Manifest @@ -35,9 +35,9 @@ self["webpackHotUpdate"]('main', { "./app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -47,12 +47,12 @@ function App() { children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: value }, void 0, false, { - fileName: "/test/hotCases/jsx/value/app.jsx", + fileName: "/test/hotCases/jsx/value/app.jsx", lineNumber: 3, columnNumber: 16 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/value/app.jsx", + fileName: "/test/hotCases/jsx/value/app.jsx", lineNumber: 3, columnNumber: 11 }, this); diff --git a/test/hotCases/jsx/with-same-name-component/__snapshots__/web/1.snap.txt b/test/hotCases/jsx/with-same-name-component/__snapshots__/web/1.snap.txt index 6c82194..d63235f 100644 --- a/test/hotCases/jsx/with-same-name-component/__snapshots__/web/1.snap.txt +++ b/test/hotCases/jsx/with-same-name-component/__snapshots__/web/1.snap.txt @@ -4,12 +4,11 @@ - app.jsx - child-a.jsx - child-b.jsx -- same-name-component.jsx ## Asset Files - Bundle: bundle.js - Manifest: main.LAST_HASH.hot-update.json, size: 28 -- Update: main.LAST_HASH.hot-update.js, size: 15936 +- Update: main.LAST_HASH.hot-update.js, size: 15720 ## Manifest @@ -41,9 +40,9 @@ self["webpackHotUpdate"]('main', { "./app.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - App: function() { return App; } + App: () => (App) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* ESM import */var _child_a__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./child-a */ "./child-a.jsx"); /* ESM import */var _child_b__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./child-b */ "./child-b.jsx"); /* module decorator */ module = __webpack_require__.hmd(module); @@ -55,18 +54,18 @@ function App() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("div", { children: [ /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_child_a__WEBPACK_IMPORTED_MODULE_1__.ChildA, {}, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/app.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/app.jsx", lineNumber: 7, columnNumber: 7 }, this), /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_child_b__WEBPACK_IMPORTED_MODULE_2__.ChildB, {}, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/app.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/app.jsx", lineNumber: 8, columnNumber: 7 }, this) ] }, void 0, true, { - fileName: "/test/hotCases/jsx/with-same-name-component/app.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/app.jsx", lineNumber: 6, columnNumber: 5 }, this); @@ -153,9 +152,9 @@ if (moduleHot) { "./child-a.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - ChildA: function() { return ChildA; } + ChildA: () => (ChildA) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -163,7 +162,7 @@ function SameNameComponent() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: "same name component in component-a" }, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/child-a.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/child-a.jsx", lineNumber: 2, columnNumber: 10 }, this); @@ -173,12 +172,12 @@ function ChildA() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { className: "component-a", children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(SameNameComponent, {}, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/child-a.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/child-a.jsx", lineNumber: 6, columnNumber: 41 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/child-a.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/child-a.jsx", lineNumber: 6, columnNumber: 11 }, this); @@ -266,9 +265,9 @@ if (moduleHot) { "./child-b.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - ChildB: function() { return ChildB; } + ChildB: () => (ChildB) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* ESM import */var _same_name_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./same-name-component */ "./same-name-component.jsx"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -278,12 +277,12 @@ function ChildB() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { className: "component-b", children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_same_name_component__WEBPACK_IMPORTED_MODULE_1__.SameNameComponent, {}, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/child-b.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/child-b.jsx", lineNumber: 4, columnNumber: 41 }, this) }, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/child-b.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/child-b.jsx", lineNumber: 4, columnNumber: 11 }, this); @@ -370,9 +369,9 @@ if (moduleHot) { "./same-name-component.jsx": (function (module, __webpack_exports__, __webpack_require__) { __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__, { - SameNameComponent: function() { return SameNameComponent; } + SameNameComponent: () => (SameNameComponent) }); -/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules/.pnpm/preact@10.24.3/node_modules/preact/compat/jsx-dev-runtime.js"); +/* ESM import */var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ "../../../../node_modules//preact/compat/jsx-dev-runtime.js"); /* module decorator */ module = __webpack_require__.hmd(module); /* provided dependency */ var __prefresh_utils__ = __webpack_require__(/*! ../../../../client/prefresh.js */ "../../../../client/prefresh.js")["default"]; @@ -380,7 +379,7 @@ function SameNameComponent() { return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)("span", { children: "same name component in component-b" }, void 0, false, { - fileName: "/test/hotCases/jsx/with-same-name-component/same-name-component.jsx", + fileName: "/test/hotCases/jsx/with-same-name-component/same-name-component.jsx", lineNumber: 2, columnNumber: 10 }, this);