Update dependencies and clean up project structure. Add cloud.google.com/go/compute/metadata as an indirect requirement in go.mod. Remove unused files and update package.json for Vite and React plugins. Refactor Makefile for improved build process.
This commit is contained in:
9
web/node_modules/@vitejs/plugin-react/dist/refresh-runtime.js
generated
vendored
9
web/node_modules/@vitejs/plugin-react/dist/refresh-runtime.js
generated
vendored
@@ -243,7 +243,7 @@ function performReactRefresh() {
|
||||
}
|
||||
}
|
||||
|
||||
export function register(type, id) {
|
||||
function register(type, id) {
|
||||
if (type === null) {
|
||||
return
|
||||
}
|
||||
@@ -564,6 +564,10 @@ function isPlainObject(obj) {
|
||||
* Plugin utils
|
||||
*/
|
||||
|
||||
export function getRefreshReg(filename) {
|
||||
return (type, id) => register(type, filename + ' ' + id)
|
||||
}
|
||||
|
||||
// Taken from https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/runtime/RefreshUtils.js#L141
|
||||
// This allows to resister components not detected by SWC like styled component
|
||||
export function registerExportsForReactRefresh(filename, moduleExports) {
|
||||
@@ -649,7 +653,10 @@ export function validateRefreshBoundaryAndEnqueueUpdate(
|
||||
|
||||
function predicateOnExport(ignoredExports, moduleExports, predicate) {
|
||||
for (const key in moduleExports) {
|
||||
if (key === '__esModule') continue
|
||||
if (ignoredExports.includes(key)) continue
|
||||
const desc = Object.getOwnPropertyDescriptor(moduleExports, key)
|
||||
if (desc && desc.get) return key
|
||||
if (!predicate(key, moduleExports[key])) return key
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user