one more optimalization of plugin size & load time

This commit is contained in:
Jan Prochazka
2021-05-20 08:55:50 +02:00
parent 0200c7c78b
commit e43fa96e34
19 changed files with 74 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
const SqlDumper = require('dbgate-tools/lib/SqlDumper');
const { SqlDumper } = global.DBGATE_TOOLS;
class MsSqlDumper extends SqlDumper {
autoIncrement() {

View File

@@ -1,4 +1,4 @@
const driverBase = require('dbgate-tools/lib/driverBase');
const { driverBase } = global.DBGATE_TOOLS;
const MsSqlDumper = require('./MsSqlDumper');
/** @type {import('dbgate-types').SqlDialect} */

View File

@@ -15,6 +15,12 @@ var config = {
library: 'plugin',
},
plugins: [
new webpack.DefinePlugin({
'global.DBGATE_TOOLS': 'window.DBGATE_TOOLS',
}),
],
// optimization: {
// minimize: false,
// },