ts-loader
react-refresh-webpack-plugin
Our great sponsors
ts-loader | react-refresh-webpack-plugin | |
---|---|---|
6 | 4 | |
3,424 | 3,094 | |
0.3% | - | |
4.8 | 7.0 | |
7 days ago | 5 days ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ts-loader
-
webpack adoption guide: Overview, examples, and alternatives
It'll be a little different than your typical "what is webpack?" article in that I write this as the maintainer of ts-loader, a loader used for integrating TypeScript with webpack. I've worked in the webpack ecosystem for some years now, and I'll share some of my experiences with you.
-
The Complete Guide for Setting Up React App from Scratch (feat. TypeScript)
why I use @babel/preset-typescript over ts-loader and awesome-typescript-loader to complie TypeScript? it's blazingly faster than the others and has more perks(read #4) ts-loader doesn't natively support HMR(Hot Module Replacement) awesome-typescript-loader's latest release is on Jun 22, 2018 TypeScript With Babel: A Beautiful Marriage - Matt Turnbull's Post
-
Converting to Typescript
Okay. The normal setup is that you use https://github.com/TypeStrong/ts-loader or https://github.com/TypeStrong/fork-ts-checker-webpack-plugin as part of your Webpack config. Those will run the TS compilation step as part of the Webpack processing sequence.
-
Using styled-components with SWC compiler?
I've recently tried SWC for building my project instead of ts-loader and was blown away by its performance (I got 8x-10x speedup on a Windows machine).
-
Sharing TypeScript code between Node.js and Vue.js
{ "compilerOptions": { "target": "esnext", "module": "esnext", "strict": true, "jsx": "preserve", "importHelpers": true, "moduleResolution": "node", "experimentalDecorators": true, "skipLibCheck": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "sourceMap": true, "baseUrl": "./", "outDir": "./dist", // https://github.com/TypeStrong/ts-loader/issues/1138 "importsNotUsedAsValues": "preserve", "types": [ "webpack-env" ], "paths": { "@/*": [ "src/*" ], "@shared/*": [ "../shared/*" ] }, "lib": [ "esnext", "dom", "dom.iterable", "scripthost" ] }, "include": [ "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx", "../shared/**/*" ], "exclude": [ "node_modules" ] }
-
esbuild-loader: Replace babel-loader/ts-loader and benefit from the speed of esbuild while sticking with Webpack
See https://github.com/TypeStrong/ts-loader#happypackmode. Switching to esbuild-loader cut my build time in half.
react-refresh-webpack-plugin
-
The Complete Guide for Setting Up React App from Scratch (feat. TypeScript)
as mentioned above, we're using the webpack; therefore, we're going to use @pmmmwh/react-refresh-webpack-plugin to apply the Fast Refresh feature to our app. I mean, it's for development, so what's the harm of trying it right?
-
Enabling hot reloading with ReactJS project
You didn't mention what version of webpack. You also want to use react-refresh-webpack-plugin.
-
Electron Forge Fast Refresh?
https://github.com/pmmmwh/react-refresh-webpack-plugin/ follow this worked for me. Feel free to reach out if you face issues.
-
Introducing Zero-Bundle-Size React Server Components
December 2019: @pmmmwh/react-refresh-webpack-plugin (fast Refresh for React+Webpack initial release)
What are some alternatives?
swc - Rust-based platform for the Web
craco - Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
esbuild-loader - Webpack loader for esbuild: Speed up your build ⚡️
prerender-spa-plugin - Prerenders static HTML in a single-page application.
babel-plugin-styled-components - Improve the debugging experience and add server-side rendering support to styled-components
offline-plugin - Offline plugin (ServiceWorker, AppCache) for webpack (https://webpack.js.org/)
raw-loader - A loader for webpack that allows importing files as a String
mini-css-extract-plugin - Lightweight CSS extraction plugin
graphql-let - A webpack loader / babel-plugin / babel-plugin-macros / CLI / generated file manager of GraphQL code generator.
rfcs - RFCs for changes to React
responsive-loader - A webpack loader for responsive images
React - The library for web and native user interfaces.