File tree Expand file tree Collapse file tree 6 files changed +16
-13
lines changed
declarationOutputWithMaps Expand file tree Collapse file tree 6 files changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ function provideDeclarationFilesToWebpack(
251
251
252
252
declarationFiles . forEach ( declarationFile => {
253
253
const assetPath = path . relative (
254
- compilation . compiler . context ,
254
+ compilation . compiler . outputPath ,
255
255
declarationFile . name
256
256
) ;
257
257
compilation . assets [ assetPath ] = {
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ export interface WebpackCompilation {
149
149
export interface WebpackCompiler {
150
150
isChild ( ) : boolean ;
151
151
context : string ; // a guess
152
+ outputPath : string ;
152
153
watchFileSystem : WebpackNodeWatchFileSystem ;
153
154
/** key is filepath and value is Date as a number */
154
155
fileTimestamps : Map < string , number > ;
Original file line number Diff line number Diff line change 1
- Asset Size Chunks Chunk Names
2
- bundle.js 5.13 KiB main [emitted] main
3
- app.d.ts 110 bytes [emitted]
4
- sub/dep.d.ts 63 bytes [emitted]
1
+ Asset Size Chunks Chunk Names
2
+ bundle.js 5.13 KiB main [emitted] main
3
+ ../types/ app.d.ts 110 bytes [emitted]
4
+ ../types/ sub/dep.d.ts 63 bytes [emitted]
5
5
Entrypoint main = bundle.js
6
6
[./app.ts] 910 bytes {main} [built]
7
7
[./sub/dep.ts] 182 bytes {main} [built]
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "declaration" : true
3
+ "declaration" : true ,
4
+ "declarationDir" : " types"
4
5
}
5
6
}
Original file line number Diff line number Diff line change 1
- Asset Size Chunks Chunk Names
2
- bundle.js 5.13 KiB main [emitted] main
3
- app.d.ts.map 194 bytes [emitted]
4
- app.d.ts 143 bytes [emitted]
5
- sub/dep.d.ts.map 142 bytes [emitted]
6
- sub/dep.d.ts 96 bytes [emitted]
1
+ Asset Size Chunks Chunk Names
2
+ bundle.js 5.13 KiB main [emitted] main
3
+ ../types/ app.d.ts.map 197 bytes [emitted]
4
+ ../types/ app.d.ts 143 bytes [emitted]
5
+ ../types/ sub/dep.d.ts.map 152 bytes [emitted]
6
+ ../types/ sub/dep.d.ts 96 bytes [emitted]
7
7
Entrypoint main = bundle.js
8
8
[./app.ts] 910 bytes {main} [built]
9
9
[./sub/dep.ts] 182 bytes {main} [built]
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"declaration" : true ,
4
- "declarationMap" : true
4
+ "declarationMap" : true ,
5
+ "declarationDir" : " types"
5
6
}
6
7
}
You can’t perform that action at this time.
0 commit comments