Skip to content

Commit eea791f

Browse files
committed
docs(contribute): add note about commonjs support and fix memfs import
1 parent a6da89d commit eea791f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/contribute/writing-a-loader.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ npm install --save-dev webpack memfs
346346

347347
```js
348348
import path from "node:path";
349-
import { fileURLToPath } from "node:url";
349+
import { Volume, createFsFromVolume } from "memfs";
350350
import webpack from "webpack";
351351

352352
const __dirname = import.meta.dirname;

0 commit comments

Comments
 (0)