-
Notifications
You must be signed in to change notification settings - Fork 41
/
vue.config.js
38 lines (38 loc) · 1.06 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const path = require('path')
require("@hotwax/app-version-info")
module.exports = {
// WHY THIS CONFIG: Error while using pinia while importing dxp-components -
// Can't import the named export 'computed' from non EcmaScript module (only default export is available)
// WHY ERROR: Using Vue CLI 4.x may cause this error (according to Pinia docs, did their suggested resolution)
// REFERENCE: https://pinia.vuejs.org/cookbook/migration-v1-v2.html#webpack-4-support
configureWebpack: {
resolve: {
alias: {
vue: path.resolve('./node_modules/vue')
}
},
module: {
rules: [
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
},
],
},
},
pluginOptions: {
i18n: {
locale: 'en',
fallbackLocale: 'en',
localeDir: 'locales',
enableLegacy: true,
runtimeOnly: true,
compositionOnly: false,
fullInstall: true,
enableInSFC: true
}
},
runtimeCompiler: true,
transpileDependencies: ['@hotwax/dxp-components']
}