Skip to content

Commit 2613635

Browse files
committed
docs(module-loader): fix typo
1 parent a841acd commit 2613635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/module-loader.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ import { method } from 'commonjs-package';
484484

485485
```javascript
486486
import packageMain from 'commonjs-package';
487-
const { method } = packageMain;:w
487+
const { method } = packageMain;
488488
```
489489

490490
还有一种变通的加载方法,就是使用 Node.js 内置的`module.createRequire()`方法。

0 commit comments

Comments
 (0)