Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generalsimus/webpack-typescript-loader
https://github.com/generalsimus/webpack-typescript-loader
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/generalsimus/webpack-typescript-loader
- Owner: Generalsimus
- Created: 2023-01-12T20:08:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T15:06:53.000Z (almost 2 years ago)
- Last Synced: 2024-08-08T21:50:19.210Z (5 months ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [Webpack Typescript Loader](https://www.npmjs.com/package/webpack-ts-load)
[![npm version][npm-version-src]][npm-version-href]
[![npm href][standard-js-src]][standard-js-href]### webpack.config
```js
const path = require('path');module.exports = {
entry: './src/index.ts',
module: {
rules: [
{
test: /\.(((t|j)sx?)|json)$/i,
exclude: path.resolve(__dirname, "node_modules"),
use: [
{
loader: "webpack-ts-load",
options: {
compilerOptions, // ts.CompilerOptions
tsConfigPath // tsConfig file name
transforms, // ts.CustomTransformers
},
},
],
}
],
},
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist'),
},
};
```## License
MIT
[standard-js-src]: https://img.shields.io/badge/license-MIT-brightgreen?&style=flat-square
[standard-js-href]: https://github.com/Generalsimus/KIX/blob/master/LICENSE[npm-version-src]: https://img.shields.io/npm/v/webpack-ts-load?&style=flat-square
[npm-version-href]: https://www.npmjs.com/package/webpack-ts-load