webpack.plugins.ts 678 B

1234567891011121314151617181920212223
  1. import Dotenv from "dotenv-webpack";
  2. import { sentryWebpackPlugin } from "@sentry/webpack-plugin";
  3. import type IForkTsCheckerWebpackPlugin from "fork-ts-checker-webpack-plugin";
  4. // eslint-disable-next-line @typescript-eslint/no-var-requires
  5. const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require("fork-ts-checker-webpack-plugin");
  6. export const plugins = [
  7. new ForkTsCheckerWebpackPlugin({
  8. logger: "webpack-infrastructure",
  9. }),
  10. new Dotenv({
  11. path: "./.env",
  12. safe: false,
  13. systemvars: true,
  14. }),
  15. sentryWebpackPlugin({
  16. authToken: process.env.SENTRY_AUTH_TOKEN,
  17. org: "hydra-launcher",
  18. project: "hydra-launcher",
  19. }),
  20. ];