ollama/macapp/webpack.plugins.ts

15 lines
516 B
TypeScript
Raw Normal View History

2023-06-23 19:04:38 +00:00
import type IForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin'
2023-07-07 14:27:16 +00:00
import { DefinePlugin } from 'webpack'
2023-06-23 19:04:38 +00:00
// eslint-disable-next-line @typescript-eslint/no-var-requires
const ForkTsCheckerWebpackPlugin: typeof IForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin')
export const plugins = [
new ForkTsCheckerWebpackPlugin({
logger: 'webpack-infrastructure',
}),
2023-07-07 14:27:16 +00:00
new DefinePlugin({
'process.env.TELEMETRY_WRITE_KEY': JSON.stringify(process.env.TELEMETRY_WRITE_KEY),
}),
2023-06-23 19:04:38 +00:00
]