Skip to content

Commit b7de7ee

Browse files
committed
docs lint fix
1 parent ac7c233 commit b7de7ee

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/api/esm.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,13 +729,11 @@ const instance2 = await WebAssembly.instantiate(libraryModule, {
729729
In addition to the static source phase, there is also a dynamic variant of the
730730
source phase via the `import.source` dynamic phase import syntax:
731731
732-
<!-- eslint-skip -->
733-
734732
```js
735733
const dynamicLibrary = await import.source('./library.wasm');
736734

737735
const instance = await WebAssembly.instantiate(dynamicLibrary, {
738-
custom: import
736+
custom: importObj,
739737
});
740738
```
741739

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export default [
104104
parser: babelEslintParser,
105105
parserOptions: {
106106
babelOptions: {
107+
parserOpts: { createImportExpressions: true },
107108
plugins: [
108109
babelPluginProposalExplicitResourceManagement,
109110
babelPluginSyntaxImportAttributes,

0 commit comments

Comments
 (0)