webpack.plugins.ts 516 B

123456789101112131415
  1. import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
  2. import { DefinePlugin } from 'webpack'
  3. // eslint-disable-next-line @typescript-eslint/no-var-requires
  4. const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
  5. export const plugins = [
  6. new ForkTsCheckerWebpackPlugin({
  7. logger: 'webpack-infrastructure',
  8. }),
  9. new DefinePlugin({
  10. 'process.env.TELEMETRY_WRITE_KEY': JSON.stringify(process.env.TELEMETRY_WRITE_KEY),
  11. }),
  12. ]