Skip to content

Commit dca1fa0

Browse files
committed
minor #9827 Update typescript.rst (kallard1)
This PR was submitted for the 4.0 branch but it was merged into the 3.4 branch instead (closes #9827). Discussion ---------- Update typescript.rst `configFileName` was renamed in `configFile` for Typescript configuration ``` Module build failed: Error: ts-loader was supplied with an unexpected loader option: configFileName Please take a look at the options you are supplying; the following are valid options: silent / logLevel / logInfoToStdOut / instance / compiler / context / configFile / transpileOnly / ignoreDiagnostics / errorFormatter / colors / compilerOptions / appendTsSuffixTo / appendTsxSuffixTo / onlyCompileBundledFiles / happyPackMode / getCustomTransformers / reportFiles / experimentalWatchApi / allowTsInNodeModules ``` Commits ------- e2cf45c Update typescript.rst
2 parents 974ebd5 + e2cf45c commit dca1fa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/encore/typescript.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ also configure the `ts-loader options`_ via a callback:
2828
2929
.enableTypeScriptLoader(function (typeScriptConfigOptions) {
3030
typeScriptConfigOptions.transpileOnly = true;
31-
typeScriptConfigOptions.configFileName = '/path/to/tsconfig.json';
31+
typeScriptConfigOptions.configFile = '/path/to/tsconfig.json';
3232
});
3333
3434
If React assets are enabled (``.enableReactPreset()``), any ``.tsx`` file will be

0 commit comments

Comments
 (0)