File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,12 @@ export const baseBuildCommandOptions: any = [
125
125
default : true ,
126
126
aliases : [ 'dop' ] ,
127
127
description : 'Delete output path before build.'
128
+ } ,
129
+ {
130
+ name : 'preserve-symlinks' ,
131
+ type : Boolean ,
132
+ default : false ,
133
+ description : 'Do not use the real path when resolving modules.'
128
134
}
129
135
] ;
130
136
Original file line number Diff line number Diff line change @@ -18,4 +18,5 @@ export interface BuildOptions {
18
18
poll ?: number ;
19
19
app ?: string ;
20
20
deleteOutputPath ?: boolean ;
21
+ preserveSymlinks ?: boolean ;
21
22
}
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ export function getCommonConfig(wco: WebpackConfigOptions) {
68
68
resolve : {
69
69
extensions : [ '.ts' , '.js' ] ,
70
70
modules : [ 'node_modules' , nodeModules ] ,
71
+ symlinks : ! buildOptions . preserveSymlinks
71
72
} ,
72
73
resolveLoader : {
73
74
modules : [ nodeModules , 'node_modules' ]
You can’t perform that action at this time.
0 commit comments