Loaders
Loaders are transformations that are applied to the source code of a module.
Typescript and Javascript using swc-loader
See
swc
for more documentation
Installation
Usage
webpack.config.js
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: {
// `.swcrc` can be used to configure swc
loader: "swc-loader",
},
},
];
}
The jsc.transform.react.development option is automatically set based on the webpack mode.
CSS using styled-loader
and css-loader
Installation
Usage
Last update:
August 12, 2023
Created: June 3, 2023
Created: June 3, 2023