Skip to content

Commit c031b20

Browse files
committed
update readme
Signed-off-by: karthik2804 <[email protected]>
1 parent 32742ad commit c031b20

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

readme.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ This is a library compatible with WASI 0.2 that makes select Node.js APIs availa
99
This library currently requires Webpack and uses a plugin to define the fall backs.:
1010

1111
```js
12-
const WasiExtPlugin = require("wasi-ext/plugin")
12+
import WasiExtPlugin from "@spinframework/wasi-ext/plugin/index.js";
1313

14-
module.exports = {
14+
export default config = () => {
1515
...
16-
plugins: [
17-
new WasiExtPlugin()
18-
],
19-
...
20-
};
16+
return {
17+
...
18+
plugins: [
19+
new WasiExtPlugin()
20+
],
21+
...
22+
}
23+
}
2124

2225
```
2326

0 commit comments

Comments
 (0)