From c3a585d75a8bb01cc0fabe0d0e618930448bcad4 Mon Sep 17 00:00:00 2001 From: Kia Ishii Date: Fri, 26 Jun 2020 17:39:50 +0900 Subject: [PATCH] docs: update the new `logger` plugin export path --- docs/guide/plugins.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/guide/plugins.md b/docs/guide/plugins.md index 48a10c065..a3dc3b931 100644 --- a/docs/guide/plugins.md +++ b/docs/guide/plugins.md @@ -92,13 +92,17 @@ The plugin will be used by default. For production, you will need [DefinePlugin] Vuex comes with a logger plugin for common debugging usage: ``` js -import createLogger from 'vuex/dist/logger' +import { createLogger } from 'vuex' const store = new Vuex.Store({ plugins: [createLogger()] }) ``` +:::warning WARNING +Before v3.5.0, the `createLogger` function is exported at `vuex/dist/logger` package. PLease checkout the "Before Vuex v3.5.0" setion of this page. +::: + The `createLogger` function takes a few options: ``` js @@ -137,3 +141,15 @@ const logger = createLogger({ The logger file can also be included directly via a `