-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
50 lines (48 loc) · 1.16 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
39
40
41
42
43
44
45
46
47
48
49
50
// const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
// .BundleAnalyzerPlugin;
// eslint-disable-next-line @typescript-eslint/no-var-requires
const webpack = require("webpack");
module.exports = {
configureWebpack: {
experiments: {
syncWebAssembly: true,
},
target: "web",
resolve: {
fallback: {
fs: false,
path: false,
module: false,
crypto: false,
worker_threads: false,
vm: false,
util: false,
//util: require.resolve("util/"),
},
alias: {
// Alias for using source of BootstrapVue
"bootstrap-vue$": "bootstrap-vue/src/index.js",
},
},
plugins: [
new webpack.DefinePlugin({
__ENV__: JSON.stringify("PRODUCTION"),
}),
],
module: {
rules: [
{
test: /\.js$/,
// Exclude transpiling `node_modules`, except `bootstrap-vue/src`
exclude: /node_modules\/(?!bootstrap-vue\/src\/)/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
},
},
},
],
},
},
};