Skip to content

Commit

Permalink
set code block language to javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
chenxsan committed Sep 9, 2020
1 parent 2b8f9de commit 4aa92c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/api/module-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Returns the absolute `file:` URL of the module.

__src/index.js__

```text
```javascript
console.log(import.meta.url); // output something like `file:///path/to/your/project/src/index.js`
```
Expand All @@ -106,7 +106,7 @@ Returns the webpack version.
__src/index.js__
```text
```javascript
console.log(import.meta.webpack); // output `5` for webpack 5
```
Expand Down

0 comments on commit 4aa92c1

Please sign in to comment.