Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
docs(en/options): tweak esModule note
  • Loading branch information
kazupon committed Jul 29, 2017
1 parent 46fc1e1 commit 62b698c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en/options.md
Expand Up @@ -124,11 +124,12 @@ module.exports = {
### esModule

- type: `boolean`
- default: `true`
- In v12.x or below, default value is `false`
- default: `true` (v13.0+)

Whether to emit esModule compatible code. By default vue-loader will emit default export in commonjs format like `module.exports = ....`. When `esModule` is set to true, default export will be transpiled into `exports.__esModule = true; exports = ...`. Useful for interoperating with transpiler other than Babel, like TypeScript.

> version note: up to v12.x, default value is `false`.
### preserveWhitespace

- type: `boolean`
Expand Down

0 comments on commit 62b698c

Please sign in to comment.