| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import path from 'path';
- import { fileURLToPath } from 'url';
- const __filename = fileURLToPath(import.meta.url);
- const __dirname = path.dirname(__filename);
- export default {
- entry: './scripts/ExportToAi/ich.ts',
- target: 'node',
- mode: 'production',
- output: {
- path: path.resolve(__dirname, 'dist'),
- filename: 'ich-bundle.cjs',
- clean: true,
- },
- resolve: {
- extensions: ['.ts', '.js'],
- alias: {
- '@': path.resolve(__dirname),
- }
- },
- module: {
- rules: [
- {
- test: /\.ts$/,
- use: {
- loader: 'ts-loader',
- options: {
- configFile: 'tsconfig.ich.json',
- },
- },
- exclude: /node_modules/,
- },
- ],
- },
- externals: {
- fs: 'commonjs fs',
- path: 'commonjs path',
- },
- node: {
- __dirname: true,
- __filename: true,
- },
- };
|