Skip to content

Commit 06fb694

Browse files
committed
docs: fix typo
1 parent 2a09706 commit 06fb694

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/docs/docs/plugin/option-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Sometimes, you may want to generate some client modules at compile time.
271271
module.exports = (options, context) => ({
272272
clientDynamicModules() {
273273
return {
274-
name: 'constans.js',
274+
name: 'constants.js',
275275
content: `export const SOURCE_DIR = '${context.sourceDir}'`
276276
}
277277
}
@@ -281,7 +281,7 @@ module.exports = (options, context) => ({
281281
Then you can use this module at client side code by:
282282

283283
``` js
284-
import { SOURCE_DIR } from '@dynamic/constans'
284+
import { SOURCE_DIR } from '@dynamic/constants'
285285
```
286286

287287
## extendPageData

packages/docs/docs/zh/plugin/option-api.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ module.exports = (option, context) => {
275275
module.exports = (options, context) => ({
276276
clientDynamicModules() {
277277
return {
278-
name: 'constans.js',
278+
name: 'constants.js',
279279
content: `export const SOURCE_DIR = '${context.sourceDir}'`
280280
}
281281
}
@@ -285,7 +285,7 @@ module.exports = (options, context) => ({
285285
然后你可以在客户端这样使用你的模块:
286286

287287
``` js
288-
import { SOURCE_DIR } from '@dynamic/constans'
288+
import { SOURCE_DIR } from '@dynamic/constants'
289289
```
290290

291291
## extendPageData

0 commit comments

Comments
 (0)