Does latest version work with ts-loader
See original GitHub issueHi,
Thanks for the amazing library. I started to use this when the version was 3.2.3
and react-script at 2.1.3
. At that time CRA didn’t have support for typescript. Hence I configured to use ts-loader to create my project in typescript with overriding webpack config
overrideWebpackConfig: ({ webpackConfig, context: { env, paths } }) => {
const {
match: { loader: tsLoader }
} = getLoader(webpackConfig, loaderByName('ts-loader'));
tsLoader.options = {
...tsLoader.options,
getCustomTransformers: () => ({
before: [
tsImportPluginFactory({
libraryDirectory: 'es',
libraryName: 'antd',
style: true
})
]
})
};
Does the latest version support use of ts-loader? I am not a big fan of babel support for typescript as it still doesn’t support most features and every time I need to look for babel plugin to make sure the transpilation works.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
ts-loader - npm
TypeScript loader for webpack. Latest version: 9.4.2, last published: 25 days ago. Start using ts-loader in your project by running `npm i ...
Read more >how to specify typescript version to ts-loader? - Stack Overflow
I intend to use typescript@2 but I have no clue how to tell ts-loader to use the proper version... Add typescript@2 to your...
Read more >CHANGELOG.md - TypeStrong/ts-loader - GitHub
Upgrade chalk , loader-utils , and semver to latest stable versions - thanks ... webpack 2. ts-loader 2.x may work with webpack 1...
Read more >TypeScript - webpack
In this guide we will learn how to integrate TypeScript with webpack. Basic Setup. First install the TypeScript compiler and loader by running:...
Read more >ts-loader/CHANGELOG.md - UNPKG
259, * ts-loader now officially only supports webpack 2. ts-loader 2.x may work with webpack 1 but it is not supported. Related to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So just how to tune options of ts-loader using craco ?! in 2021 ?
@patricklafrance Awesome that worked thanks