123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import { Fragment, jsxDEV } from 'react/jsx-dev-runtime'
- import RefreshRuntime from '/@react-refresh'
- const inWebWorker = typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope
- let prevRefreshReg
- let prevRefreshSig
- if (import.meta.hot && !inWebWorker) {
- if (!window.__vite_plugin_react_preamble_installed__) {
- throw new Error('@vitejs/plugin-react can\'t detect preamble. Something is wrong. See https://github.com/vitejs/vite-plugin-react/pull/11#discussion_r430879201')
- }
- prevRefreshReg = window.$RefreshReg$
- prevRefreshSig = window.$RefreshSig$
- window.$RefreshReg$ = (type, id) => {
- RefreshRuntime.register(type, '/Users/huangzhichao/Documents/www/test/pro_demo/react_vite/src/App.tsx ' + id)
- }
- window.$RefreshSig$ = RefreshRuntime.createSignatureFunctionForTransform
- }
- var _s = $RefreshSig$()
- import { useState } from 'react'
- import './App.css'
- function App() {
- _s()
- const [count, setCount] = useState(0)
- return /* @__PURE__ */jsxDEV(Fragment, {
- children: /* @__PURE__ */jsxDEV('div', {
- className: 'container',
- children: ['123', /* @__PURE__ */jsxDEV('div', {
- children: 'span'
- }, void 0, false, {
- fileName: '/Users/huangzhichao/Documents/www/test/pro_demo/react_vite/src/App.tsx',
- lineNumber: 11,
- columnNumber: 9
- }, this)]
- }, void 0, true, {
- fileName: '/Users/huangzhichao/Documents/www/test/pro_demo/react_vite/src/App.tsx',
- lineNumber: 8,
- columnNumber: 7
- }, this)
- }, void 0, false, {
- fileName: '/Users/huangzhichao/Documents/www/test/pro_demo/react_vite/src/App.tsx',
- lineNumber: 7,
- columnNumber: 10
- }, this)
- }
- _s(App, 'oDgYfYHkD9Wkv4hrAPCkI/ev3YU=')
- _c = App
- export default App
- var _c
- $RefreshReg$(_c, 'App')
- if (import.meta.hot && !inWebWorker) {
- window.$RefreshReg$ = prevRefreshReg
- window.$RefreshSig$ = prevRefreshSig
- RefreshRuntime.__hmr_import(import.meta.url).then(currentExports => {
- RefreshRuntime.registerExportsForReactRefresh('/Users/huangzhichao/Documents/www/test/pro_demo/react_vite/src/App.tsx', currentExports)
- import.meta.hot.accept(nextExports => {
- if (!nextExports) return
- const invalidateMessage = RefreshRuntime.validateRefreshBoundaryAndEnqueueUpdate(currentExports, nextExports)
- if (invalidateMessage) import.meta.hot.invalidate(invalidateMessage)
- })
- })
- }
|