webpack-ts-load
v0.1.1
Published
A Webpack loader for seamless integration between Webpack and Typescript.
Downloads
3
Maintainers
Readme
Webpack Typescript Loader
webpack.config
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