File tree 4 files changed +51
-1
lines changed
4 files changed +51
-1
lines changed Original file line number Diff line number Diff line change 59
59
"escape-string-regexp" : " 1.0.5" ,
60
60
"filesize" : " 3.6.1" ,
61
61
"find-up" : " 3.0.0" ,
62
- "fork-ts-checker-webpack-plugin" : " 1.0 .1" ,
62
+ "fork-ts-checker-webpack-plugin" : " 1.1 .1" ,
63
63
"global-modules" : " 2.0.0" ,
64
64
"globby" : " 8.0.2" ,
65
65
"gzip-size" : " 5.0.0" ,
Original file line number Diff line number Diff line change
1
+ // @remove -on-eject-begin
2
+ /**
3
+ * Copyright (c) 2015-present, Facebook, Inc.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ // @remove -on-eject-end
9
+ 'use strict' ;
10
+
11
+ const { resolveModuleName } = require ( 'ts-pnp' ) ;
12
+
13
+ exports . resolveModuleName = (
14
+ typescript ,
15
+ moduleName ,
16
+ containingFile ,
17
+ compilerOptions ,
18
+ resolutionHost
19
+ ) => {
20
+ return resolveModuleName (
21
+ moduleName ,
22
+ containingFile ,
23
+ compilerOptions ,
24
+ resolutionHost ,
25
+ typescript . resolveModuleName
26
+ ) ;
27
+ } ;
28
+
29
+ exports . resolveTypeReferenceDirective = (
30
+ typescript ,
31
+ moduleName ,
32
+ containingFile ,
33
+ compilerOptions ,
34
+ resolutionHost
35
+ ) => {
36
+ return resolveModuleName (
37
+ moduleName ,
38
+ containingFile ,
39
+ compilerOptions ,
40
+ resolutionHost ,
41
+ typescript . resolveTypeReferenceDirective
42
+ ) ;
43
+ } ;
Original file line number Diff line number Diff line change @@ -637,6 +637,12 @@ module.exports = function(webpackEnv) {
637
637
async : isEnvDevelopment ,
638
638
useTypescriptIncrementalApi : true ,
639
639
checkSyntacticErrors : true ,
640
+ resolveModuleNameModule : process . versions . pnp
641
+ ? `${ __dirname } /pnpTs.js`
642
+ : undefined ,
643
+ resolveTypeReferenceDirectiveModule : process . versions . pnp
644
+ ? `${ __dirname } /pnpTs.js`
645
+ : undefined ,
640
646
tsconfig : paths . appTsConfig ,
641
647
reportFiles : [
642
648
'**' ,
Original file line number Diff line number Diff line change 74
74
"semver" : " 6.0.0" ,
75
75
"style-loader" : " 0.23.1" ,
76
76
"terser-webpack-plugin" : " 1.2.3" ,
77
+ "ts-pnp" : " 1.1.2" ,
77
78
"url-loader" : " 1.1.2" ,
78
79
"webpack" : " 4.29.6" ,
79
80
"webpack-dev-server" : " 3.2.1" ,
You can’t perform that action at this time.
0 commit comments