|
|
@ -1,9 +1,9 @@ |
|
|
|
const { join, resolve } = require('path'); |
|
|
|
const { join, resolve } = require('path'); |
|
|
|
const { rspack } = require('@rspack/core'); |
|
|
|
const { rspack } = require('@rspack/core'); |
|
|
|
const NodeExternals = require('webpack-node-externals'); |
|
|
|
|
|
|
|
const { RunScriptWebpackPlugin } = require('run-script-webpack-plugin'); |
|
|
|
const { RunScriptWebpackPlugin } = require('run-script-webpack-plugin'); |
|
|
|
const {resolveTsAliases} = require("./build-utils/resolveTsAliases"); |
|
|
|
const {resolveTsAliases} = require("./build-utils/resolveTsAliases"); |
|
|
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); |
|
|
|
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin'); |
|
|
|
|
|
|
|
const nodeExternals = require('webpack-node-externals'); |
|
|
|
|
|
|
|
|
|
|
|
const baseDevConfig = { |
|
|
|
const baseDevConfig = { |
|
|
|
mode: 'development', |
|
|
|
mode: 'development', |
|
|
@ -52,23 +52,9 @@ const baseDevConfig = { |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
externals: [ |
|
|
|
externals: [ |
|
|
|
NodeExternals({ |
|
|
|
nodeExternals({ |
|
|
|
allowlist: ['webpack/hot/poll?1000'], |
|
|
|
allowlist: ['webpack/hot/poll?1000'], |
|
|
|
}), |
|
|
|
}) |
|
|
|
{ |
|
|
|
|
|
|
|
'@nestjs/microservices': '@nestjs/microservices', |
|
|
|
|
|
|
|
'@nestjs/microservices/microservices-module': |
|
|
|
|
|
|
|
'@nestjs/microservices/microservices-module', |
|
|
|
|
|
|
|
sharp: 'commonjs sharp', |
|
|
|
|
|
|
|
'nocodb-sdk': 'nocodb-sdk', |
|
|
|
|
|
|
|
'pg-query-stream': 'pg-query-stream', |
|
|
|
|
|
|
|
'better-sqlite3': 'better-sqlite3', |
|
|
|
|
|
|
|
oracledb: 'oracledb', |
|
|
|
|
|
|
|
'pg-native': 'pg-native', |
|
|
|
|
|
|
|
'@nestjs/graphql': '@nestjs/graphql', |
|
|
|
|
|
|
|
pg: 'commonjs pg', |
|
|
|
|
|
|
|
knex: 'commonjs knex', |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
resolve: { |
|
|
|
resolve: { |
|
|
|
extensions: ['.tsx', '.ts', '.js', '.json', '.node'], |
|
|
|
extensions: ['.tsx', '.ts', '.js', '.json', '.node'], |
|
|
|