@sigi/ts-plugin

TypeScript plugin for Sigi framework

Usage no npm install needed!

<script type="module">
  import sigiTsPlugin from 'https://cdn.skypack.dev/@sigi/ts-plugin';
</script>

README

@sigi/ts-plugin

Usage

// webpack.config.js
const { SigiTransformer } = require('@sigi/ts-plugin')

module.exports = {
  // ...
  module: {
    rules: [
      {
        test: /\.(jsx|tsx|js|ts)$/,
        loader: 'ts-loader',
        options: {
          transpileOnly: true,
          getCustomTransformers: () => ({
            before: [SigiTransformer],
          }),
          compilerOptions: {
            module: 'esnext',
          },
        },
        exclude: /node_modules/,
      },
    ],
  },
  // ...
}