Skip to content

Commit c6ae2d2

Browse files
committed
chore: remove logs
1 parent e4d7a16 commit c6ae2d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/hot_hook/src/loader.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,10 @@ export class HotHookLoader {
161161
if (file === this.#projectRoot) return false
162162
if (!stats) return false
163163

164-
if (this.#pathIgnoredMatcher.match(file)) {
165-
console.log('PM File %s is ignored', file)
166-
return true
167-
}
164+
if (this.#pathIgnoredMatcher.match(file)) return true
168165
if (this.#reloadMatcher.match(file)) return false
169166

170167
if (stats.isDirectory()) return false
171-
console.log('File %s is ignored', file, !this.#pathIncludedMatcher.match(file))
172168

173169
return !this.#pathIncludedMatcher.match(file)
174170
},
@@ -241,7 +237,6 @@ export class HotHookLoader {
241237
* - And adding files to the watcher
242238
*/
243239
resolve: ResolveHook = async (specifier, context, nextResolve) => {
244-
console.log('Resolving specifier:', specifier, 'with context:', context)
245240
const parentUrl = (context.parentURL && new URL(context.parentURL)) as URL
246241
if (parentUrl?.searchParams.has('hot-hook')) {
247242
parentUrl.searchParams.delete('hot-hook')

0 commit comments

Comments
 (0)