8000 Adding a sample tsconfig file to the Encore documentation page by iammichiel · Pull Request #10521 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Adding a sample tsconfig file to the Encore documentation page #10521

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/encore/typescript.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ Encore, you're done!

Any ``.ts`` files that you require will be processed correctly. You can
also configure the `ts-loader options`_ via the ``enableTypeScriptLoader()``
method. See the `Encore's index.js file`_ for detailed documentation.
method. See the `Encore's index.js file`_ for detailed documentation and check
out the `tsconfig.json reference`_ and the `Webpack guide about Typescript`_.

If React is enabled (``.enableReactPreset()``), any ``.tsx`` file will also be
processed by ``ts-loader``.

.. _`TypeScript`: https://www.typescriptlang.org/
.. _`ts-loader options`: https://github.com/TypeStrong/ts-loader#options
.. _`Encore's index.js file`: https://github.com/symfony/webpack-encore/blob/master/index.js
.. _`tsconfig.json reference`: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
.. _`Webpack guide about Typescript`: https://webpack.js.org/guides/typescript/
0