Skip to content

Commit 426ab46

Browse files
committed
fix: preserve import cache for node_modules
1 parent 8ed1b9f commit 426ab46

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

pnpm-lock.yaml

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ catalogs:
6262
defu: ^6.1.4
6363
empathic: ^2.0.0
6464
hookable: ^5.5.3
65-
import-without-cache: ^0.2.4
65+
import-without-cache: ^0.2.5
6666
is-in-ci: ^2.0.0
6767
obug: ^2.1.1
6868
package-manager-detector: ^1.6.0

src/config/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async function nativeImport(id: string) {
187187
const importAttributes: Record<string, string> = Object.create(null)
188188
if (isSupported) {
189189
importAttributes.cache = 'no'
190-
init()
190+
init({ skipNodeModules: true })
191191
} else if (!isBun) {
192192
url.searchParams.set('no-cache', crypto.randomUUID())
193193
}

0 commit comments

Comments
 (0)