From a8e3978fca34311cdb8ceb815d1b49660883b993 Mon Sep 17 00:00:00 2001 From: Marcos Moura Date: Wed, 31 Jan 2018 17:05:09 -0200 Subject: [PATCH] fix: make dev env works --- build/docs/webpack.js | 2 +- build/loaders/component-example-loader.js | 2 +- build/local/webpack.js | 2 +- docs/app/store/index.js | 6 +----- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/build/docs/webpack.js b/build/docs/webpack.js index ef3f9c091..33f530ace 100644 --- a/build/docs/webpack.js +++ b/build/docs/webpack.js @@ -29,7 +29,7 @@ const componentExampleLoader = require.resolve('../loaders/component-example-loa const webpackConfig = { entry: { app: [ - '@babel/polyfill', + 'babel-polyfill', './docs/app/index.js', './build/docs/offline.js' ] diff --git a/build/loaders/component-example-loader.js b/build/loaders/component-example-loader.js index b822dfc40..2bcb9b8f1 100644 --- a/build/loaders/component-example-loader.js +++ b/build/loaders/component-example-loader.js @@ -4,7 +4,7 @@ const prettier = require('prettier') const path = require('path') const compiler = require('vue-template-compiler') const { resolvePath } = require('../config') -const { transform } = require('@babel/core') +const { transform } = require('babel-core') const transpile = code => transform(code).code const { getIndentedSource } = require('../../docs/app/mixins/codeSource') diff --git a/build/local/webpack.js b/build/local/webpack.js index ccc59b2b1..87cfb4b9f 100644 --- a/build/local/webpack.js +++ b/build/local/webpack.js @@ -12,7 +12,7 @@ export default { devtool: 'cheap-module-eval-source-map', entry: { docs: [ - '@babel/polyfill', + 'babel-polyfill', './docs/app/index.js', './build/local/client' ] diff --git a/docs/app/store/index.js b/docs/app/store/index.js index 6342ef520..18002b5f7 100644 --- a/docs/app/store/index.js +++ b/docs/app/store/index.js @@ -3,16 +3,12 @@ import Vuex from 'vuex' import state from './state' import mutations from './mutations' import actions from './actions' -import createLogger from 'vuex/dist/logger' Vue.use(Vuex) -const debug = process.env.NODE_ENV !== 'production' - export default new Vuex.Store({ state, mutations, actions, - strict: debug, - plugins: debug ? [createLogger()] : [] + strict: process.env.NODE_ENV !== 'production' })