mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 22:07:04 +00:00
feat: dialect support for mux
Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
47
packages/nc-sql-executor/webpack.config.js
Normal file
47
packages/nc-sql-executor/webpack.config.js
Normal file
@@ -0,0 +1,47 @@
|
||||
const path = require('path');
|
||||
const nodeExternals = require('webpack-node-externals');
|
||||
const { resolveTsAliases } = require('../nocodb/build-utils/resolveTsAliases');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.ts',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
transpileOnly: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
optimization: {
|
||||
nodeEnv: false,
|
||||
},
|
||||
externals: [
|
||||
nodeExternals({
|
||||
allowlist: ['knex-snowflake', 'knex-databricks'],
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js', '.json'],
|
||||
alias: resolveTsAliases(path.resolve('./tsconfig.json')),
|
||||
},
|
||||
mode: 'production',
|
||||
output: {
|
||||
filename: 'main.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
library: 'libs',
|
||||
libraryTarget: 'umd',
|
||||
globalObject: "typeof self !== 'undefined' ? self : this",
|
||||
},
|
||||
node: {
|
||||
__dirname: false,
|
||||
},
|
||||
plugins: [],
|
||||
target: 'node',
|
||||
};
|
||||
Reference in New Issue
Block a user