ts-transformer-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

ts-transformer-loader

ts-transformer-loader applies custom typescript transformers in webpack. It can be used with babel-loader with @babel/preset-typescript.

Install

npm install -D ts-transformer-loader

Configure

webpack.config.js:

module: {
  rules: [
    {
      test: /\.(j|t)sx?$/,
      use: [
        'babel-loader',
        {
          loader: 'ts-transformer-loader',
          options: {
            getTransformers: require('./getTransformers'),
            // pass a string if you are using thread-loader
            // see https://github.com/s-panferov/awesome-typescript-loader/pull/531/files
            // getTransformers: require.resolve('./getTransformers'),
          },
        },
      ],
    },
  ],
  ...
}

See example.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.7
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.7
    2
  • 0.0.6
    0
  • 0.0.5
    0
  • 0.0.4
    0

Package Sidebar

Install

npm i ts-transformer-loader

Weekly Downloads

2

Version

0.0.7

License

MIT

Unpacked Size

13.7 kB

Total Files

10

Last publish

Collaborators

  • mad_gooze