diff --git a/.babelrc b/.babelrc index ded31c0..0a44cdc 100644 --- a/.babelrc +++ b/.babelrc @@ -1,13 +1,20 @@ { "presets": [ - ["env", { - "modules": false, - "targets": { - "browsers": "> 1%", - "uglify": true - }, - "useBuiltIns": true - }] + [ + "env", { + "test": { + "useBuiltIns": true + }, + "development": { + "modules": false, + "targets": { + "browsers": "> 1%", + "uglify": true + }, + "useBuiltIns": true + } + } + ] ], "plugins": [ diff --git a/package.json b/package.json index e53d5b1..52dc786 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "roots": ["/app/javascript/packs"], "moduleDirectories": ["/node_modules"], "moduleNameMapper": { - "^vue$": "/node_modules/vue/dist/vue.common.js" + "^vue$": "vue/dist/vue.common.js" }, "moduleFileExtensions": [ "js",