You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-4
Original file line number
Diff line number
Diff line change
@@ -155,11 +155,24 @@ especially if there are other loaders/plugins involved in the compilation. **req
155
155
***typescript**`string`:
156
156
If supplied this is a custom path where `typescript` can be found. Defaults to `require.resolve('typescript')`.
157
157
158
-
***resolveModuleNameModule**`string`:
159
-
If supplied this is a path of a file where the worker can find a working implementation of `resolveModuleName` to use with TypeScript (exported through the `resolveModuleName` symbol).
158
+
***resolveModuleNameModule** and **resolveTypeReferenceDirectiveModule**`string`:
159
+
Both of those options refer to files on the disk that respectively export a `resolveModuleName` or a `resolveTypeReferenceDirectiveModule` function. These functions will be used to resolve the import statements and the `<reference types="...">` directives instead of the default TypeScript implementation. Check the following code for an example of what those functions should look like:
160
+
<details>
161
+
<summary>Code sample</summary>
160
162
161
-
***resolveTypeReferenceDirectiveModule**`string`:
162
-
If supplied this is a path of a file where the worker can find a working implementation of `resolveTypeReferenceDirective` to use with TypeScript (exported through the `resolveTypeReferenceDirective` symbol).
0 commit comments