This swc plugin add module.hot.decline()
in the program which has named import Module
from core-fe
npm install --save-dev swc-plugin-core-fe-hmr
update your .swcrc
file like below:
{
"jsc": {
"experimental": {
"plugins": [["swc-plugin-core-fe-hmr", {}]]
}
}
}