Skip to content

Commit ac2b743

Browse files
committed
chore: rework webpackj config to enable symlinks
1 parent 6dcbf37 commit ac2b743

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

packages/build-tools/src/createConfig.js

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ const { VueLoaderPlugin } = require('vue-loader')
55
const path = require('path')
66

77
exports.createConfig = (config, target = { chrome: 52, firefox: 48 }) => {
8-
const bubleOptions = {
9-
target,
10-
objectAssign: 'Object.assign',
11-
transforms: {
12-
modules: false
13-
}
14-
}
15-
168
const mode = process.env.NODE_ENV === 'production' ? 'production' : 'development'
179
const workspace = path.basename(process.cwd())
1810

@@ -25,7 +17,7 @@ exports.createConfig = (config, target = { chrome: 52, firefox: 48 }) => {
2517
'@back': '@vue-devtools/app-backend-core/lib',
2618
'@utils': '@vue-devtools/shared-utils/lib'
2719
},
28-
symlinks: false,
20+
// symlinks: false,
2921
fallback: {
3022
path: require.resolve('path-browserify')
3123
}
@@ -36,7 +28,14 @@ exports.createConfig = (config, target = { chrome: 52, firefox: 48 }) => {
3628
test: /\.js$/,
3729
loader: 'buble-loader',
3830
exclude: /node_modules|vue\/dist|vuex\/dist/,
39-
options: bubleOptions
31+
options: {
32+
target,
33+
objectAssign: 'Object.assign',
34+
transforms: {
35+
modules: false,
36+
asyncAwait: false
37+
}
38+
}
4039
},
4140
{
4241
test: /\.vue$/,
@@ -45,7 +44,13 @@ exports.createConfig = (config, target = { chrome: 52, firefox: 48 }) => {
4544
compilerOptions: {
4645
preserveWhitespace: false
4746
},
48-
transpileOptions: bubleOptions
47+
transpileOptions: {
48+
target,
49+
objectAssign: 'Object.assign',
50+
transforms: {
51+
modules: false
52+
}
53+
}
4954
}
5055
},
5156
{

0 commit comments

Comments
 (0)