Skip to content

Commit a38544d

Browse files
committed
fix: webpack fs
1 parent 00a41b3 commit a38544d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

turbopack/crates/turbopack-node/js/src/transforms/webpack-loaders.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
parse as parseStackTrace,
1010
} from '../compiled/stacktrace-parser'
1111
import { structuredError, type StructuredError } from '../ipc'
12+
import * as fs from 'fs'
1213
import {
1314
fromPath,
1415
getReadEnvVariables,
@@ -185,6 +186,7 @@ const transform = (
185186
? entry.options
186187
: {}
187188
},
189+
fs,
188190
getResolve: (options: ResolveOptions) => {
189191
const rustOptions = {
190192
aliasFields: undefined as undefined | string[],

0 commit comments

Comments
 (0)