minor fixes
This commit is contained in:
parent
14eb62cd5f
commit
7fc037f8f3
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ Like this:
|
|||
The browser automatically fetches and evaluates the imported module (and its imports if needed), and then runs the script.
|
||||
|
||||
```warn header="Modules work only via HTTP, not in local files"
|
||||
If you try to open a web-page locally, via `file://` protocol, you'll find that `import/export` directives don't work. Use a local web-server, such as [static-server](https://www.npmjs.com/package/static-server#getting-started) or VS Code [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) to test them.
|
||||
If you try to open a web-page locally, via `file://` protocol, you'll find that `import/export` directives don't work. Use a local web-server, such as [static-server](https://www.npmjs.com/package/static-server#getting-started) or use the "live server" capability of your editor, such as VS Code [Live Server Extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) to test them.
|
||||
```
|
||||
|
||||
## Core module features
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue