refactor: react fast refresh
This commit is contained in:
parent
c87cca3813
commit
97274d5402
|
@ -73,7 +73,6 @@
|
||||||
- '@babel/core'
|
- '@babel/core'
|
||||||
- '@babel/parser'
|
- '@babel/parser'
|
||||||
- '@babel/types'
|
- '@babel/types'
|
||||||
- '@hot-loader/react-dom'
|
|
||||||
- '@pixi/constants'
|
- '@pixi/constants'
|
||||||
- '@pixi/core'
|
- '@pixi/core'
|
||||||
- '@pixi/display'
|
- '@pixi/display'
|
||||||
|
@ -93,6 +92,8 @@
|
||||||
- 'matter-js'
|
- 'matter-js'
|
||||||
- 'pako'
|
- 'pako'
|
||||||
- 'react'
|
- 'react'
|
||||||
|
- 'react-dom'
|
||||||
|
- 'react-refresh/runtime'
|
||||||
- 'react-hex-editor'
|
- 'react-hex-editor'
|
||||||
- 'react-json-editor-ajrm'
|
- 'react-json-editor-ajrm'
|
||||||
- 'react-window'
|
- 'react-window'
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"build": "FLECKS_ENV__flecks_server__start=0 npm run build:only",
|
"build": "FLECKS_ENV__flecks_server__start=0 npm run build:only",
|
||||||
"build:only": "flecks build",
|
"build:only": "flecks build",
|
||||||
"debug": "DEBUG=*,-babel* npm run dev",
|
"debug": "DEBUG=*,-babel* npm run dev",
|
||||||
"dev": "npm run -- build:only -h",
|
"dev": "npm run -- build:only -dh",
|
||||||
"link-all": "yarn && for i in avocado humus persea; do yarn link $(for j in $(ls node_modules/@$i/); do echo \" @$i/$j\"; done); done",
|
"link-all": "yarn && for i in avocado humus persea; do yarn link $(for j in $(ls node_modules/@$i/); do echo \" @$i/$j\"; done); done",
|
||||||
"postinstall": "patch-package",
|
"postinstall": "patch-package",
|
||||||
"refresh": "rm -rf yarn.lock node_modules dist && yarn link-all",
|
"refresh": "rm -rf yarn.lock node_modules dist && yarn link-all",
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import {
|
import {
|
||||||
React,
|
React,
|
||||||
hot,
|
|
||||||
} from '@flecks/react';
|
} from '@flecks/react';
|
||||||
|
|
||||||
import useLocalStorage from '../../hooks/use-local-storage';
|
import useLocalStorage from '../../hooks/use-local-storage';
|
||||||
|
@ -23,4 +22,4 @@ Persea.displayName = 'Persea';
|
||||||
|
|
||||||
Persea.propTypes = {};
|
Persea.propTypes = {};
|
||||||
|
|
||||||
export default hot(module)(Persea);
|
export default Persea;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user