In my case, I wanna make local lib project test-lib and install it in project test-js
my node_modules/test-lib/dist/TestLibC.js like
import { jsx as _jsx } from "react/jsx-runtime";
export const TestLibC = () => {
let v = "test lib 3";
// let v = 4;
console.log(v);
return _jsx("div", { children: v });
};
//# sourceMappingURL=TestLibC.js.map
my test code is like
testReact(<div>
<TestLibC/>
</div>)
in node_modules/test-lib/dist/TestLibC.js, I change ‘test lib 3′ to test lib 4’, in some case, the dev-server bundle url: http://localhost:8080/test_testWebpackHotReload_tsx.bundle.js still show “test lib 3”
I find when I disable cache:false, it can always update latest code, but when cache: {type: “memory”}, it has this err
how to fix it
my webpack relative deps are:
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]