Remove unneccesary logs
This commit is contained in:
parent
e2df3256f4
commit
e0a07cf57c
@ -26,7 +26,6 @@ export default async function serverPostBuildFn({ artifacts }) {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let final_data = {};
|
let final_data = {};
|
||||||
console.log("global.ROOT_FILE_UPDATED", global.ROOT_FILE_UPDATED);
|
|
||||||
if (global.ROOT_FILE_UPDATED) {
|
if (global.ROOT_FILE_UPDATED) {
|
||||||
final_data = { reload: true };
|
final_data = { reload: true };
|
||||||
}
|
}
|
||||||
|
|||||||
1
dist/functions/server/watcher.js
vendored
1
dist/functions/server/watcher.js
vendored
@ -38,6 +38,7 @@ export default async function watcher() {
|
|||||||
return;
|
return;
|
||||||
global.RECOMPILING = true;
|
global.RECOMPILING = true;
|
||||||
if (full_file_path.match(/\_\_root\.tsx?$/)) {
|
if (full_file_path.match(/\_\_root\.tsx?$/)) {
|
||||||
|
// log.watch(`__root.tsx file updated. Reloading window.`);
|
||||||
global.ROOT_FILE_UPDATED = true;
|
global.ROOT_FILE_UPDATED = true;
|
||||||
}
|
}
|
||||||
await rewritePagesModule({ page_url: full_file_path });
|
await rewritePagesModule({ page_url: full_file_path });
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "@moduletrace/bunext",
|
"name": "@moduletrace/bunext",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.0.14",
|
"version": "1.0.15",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|||||||
@ -44,8 +44,6 @@ export default async function serverPostBuildFn({ artifacts }: Params) {
|
|||||||
try {
|
try {
|
||||||
let final_data: { [k: string]: any } = {};
|
let final_data: { [k: string]: any } = {};
|
||||||
|
|
||||||
console.log("global.ROOT_FILE_UPDATED", global.ROOT_FILE_UPDATED);
|
|
||||||
|
|
||||||
if (global.ROOT_FILE_UPDATED) {
|
if (global.ROOT_FILE_UPDATED) {
|
||||||
final_data = { reload: true };
|
final_data = { reload: true };
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -50,6 +50,7 @@ export default async function watcher() {
|
|||||||
global.RECOMPILING = true;
|
global.RECOMPILING = true;
|
||||||
|
|
||||||
if (full_file_path.match(/\_\_root\.tsx?$/)) {
|
if (full_file_path.match(/\_\_root\.tsx?$/)) {
|
||||||
|
// log.watch(`__root.tsx file updated. Reloading window.`);
|
||||||
global.ROOT_FILE_UPDATED = true;
|
global.ROOT_FILE_UPDATED = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user