TypeScript custom transformer for SSR
See original GitHub issue🚀 Feature Proposal
Hi. Thanks for this great tool.
Do you have any plan to provide a TypeScript custom transformer such as @loadable/babel-plugin
?
Motivation
I’m working with a project using React/SSR/TypeScript. So we use not babel-loader but ts-loader with webpack. We’re considering to introduce loadable-components but we don’t want install Babel tools.
Example
/* webpack.config.js */
const loadableComponentsTransformer = require('@loadable/ts-transformer');
module.exports = {
...
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
loader: "ts-loader",
options: {
getCustomTransformers: () => ({ before: [loadableComponentsTransformer] }),
},
},
],
},
...
};
Pitch
Why does this feature belong in the Loadable Component ecosystem?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:12
- Comments:58
Top Results From Across the Web
Writing TypeScript custom AST Transformer (Part 1)
The TypeScript compiler, on the other hand, is designed to be a battery-included monolith that works great out of the box and thus,...
Read more >use React-typescript with custom typescript transformers ...
I have a typescript transformer I regularly use in the backend (Nodejs typescript), and I want to use it in the frontend too...
Read more >Server-Side Rendering - tRPC
To enable SSR just set ssr: true in your createTRPCNext config callback. ... Set custom request headers on every request from tRPC.
Read more >Nuxt SSR: transfer Typescript class instances
Hey there!. In this article, I will teach you how to transfer class instances through Server Side Rendering in Nuxt.
Read more >Do you know how Angular transforms your code? - inDepth.dev
Angular widely uses typescript custom transformers. It might be useless to know what they do if you are not interested in Angular internals....
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
I wrote it by myself. https://github.com/Quramy/loadable-ts-transformer
@theKashey @Quramy I just blogged about this here for logrocket