mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
NPM plugin refactor
This commit is contained in:
@@ -25,14 +25,13 @@
|
|||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"byline": "^5.0.0",
|
|
||||||
"dbgate-plugin-tools": "^1.0.8",
|
"dbgate-plugin-tools": "^1.0.8",
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
|
||||||
"json-stable-stringify": "^1.0.1",
|
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@clickhouse/client": "^1.5.0"
|
"@clickhouse/client": "^1.5.0",
|
||||||
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
|
"json-stable-stringify": "^1.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
'@clickhouse/client': 'commonjs @clickhouse/client',
|
||||||
|
'json-stable-stringify': 'commonjs json-stable-stringify',
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -32,11 +32,13 @@
|
|||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"csv": "^6.3.10",
|
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
"line-reader": "^0.4.0",
|
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"csv": "^6.3.10",
|
||||||
|
"line-reader": "^0.4.0",
|
||||||
|
"lodash": "^4.17.21"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,6 +18,12 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
csv: 'commonjs csv',
|
||||||
|
'line-reader': 'commonjs line-reader',
|
||||||
|
lodash: 'commonjs lodash',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -32,10 +32,12 @@
|
|||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"xlsx": "0.16.9",
|
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependecies": {
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"xlsx": "0.16.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,6 +18,11 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
xlsx: 'commonjs xlsx',
|
||||||
|
lodash: 'commonjs lodash',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -31,15 +31,17 @@
|
|||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bson": "^6.8.0",
|
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
|
"webpack": "^5.91.0",
|
||||||
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"bson": "^6.8.0",
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
"dbgate-query-splitter": "^4.11.2",
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
"is-promise": "^4.0.0",
|
"is-promise": "^4.0.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mongodb": "^6.3.0",
|
"mongodb": "^6.3.0",
|
||||||
"mongodb-client-encryption": "^6.0.0",
|
"mongodb-client-encryption": "^6.0.0"
|
||||||
"webpack": "^5.91.0",
|
|
||||||
"webpack-cli": "^5.1.4"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,16 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||||
|
lodash: 'commonjs lodash',
|
||||||
|
mongodb: 'commonjs mongodb',
|
||||||
|
'mongodb-client-encryption': 'commonjs mongodb-client-encryption',
|
||||||
|
bson: 'commonjs bson',
|
||||||
|
'is-promise': 'commonjs is-promise',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -31,12 +31,12 @@
|
|||||||
"plugout": "dbgate-plugout dbgate-plugin-mssql"
|
"plugout": "dbgate-plugout dbgate-plugin-mssql"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"async-lock": "^1.2.6",
|
"async-lock": "^1.2.6",
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
"dbgate-query-splitter": "^4.11.2",
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
"tedious": "^18.2.0"
|
"tedious": "^18.2.0"
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ var config = {
|
|||||||
|
|
||||||
externals: {
|
externals: {
|
||||||
msnodesqlv8: 'commonjs msnodesqlv8',
|
msnodesqlv8: 'commonjs msnodesqlv8',
|
||||||
|
'async-lock': 'commonjs async-lock',
|
||||||
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
tedious: 'commonjs tedious',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -31,12 +31,14 @@
|
|||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"antares-mysql-dumper": "^0.0.1",
|
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
|
||||||
"mysql2": "^3.11.3",
|
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"antares-mysql-dumper": "^0.0.1",
|
||||||
|
"dbgate-query-splitter": "^4.11.2",
|
||||||
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
|
"mysql2": "^3.11.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,13 @@ var config = {
|
|||||||
libraryTarget: 'commonjs2',
|
libraryTarget: 'commonjs2',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||||
|
'antares-mysql-dumper': 'commonjs antares-mysql-dumper',
|
||||||
|
mysql2: 'commonjs mysql2',
|
||||||
|
},
|
||||||
|
|
||||||
// uncomment for disable minimalization
|
// uncomment for disable minimalization
|
||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
|
|||||||
@@ -31,10 +31,15 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"dbgate-plugin-tools": "^1.0.8",
|
"dbgate-plugin-tools": "^1.0.8",
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"dbgate-query-splitter": "^4.11.2",
|
||||||
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
|
"lodash": "^4.17.21"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"oracledb": "^6.6.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,13 +6,12 @@ const Analyser = require('./Analyser');
|
|||||||
const { createBulkInsertStreamBase, makeUniqueColumnNames } = global.DBGATE_PACKAGES['dbgate-tools'];
|
const { createBulkInsertStreamBase, makeUniqueColumnNames } = global.DBGATE_PACKAGES['dbgate-tools'];
|
||||||
const createOracleBulkInsertStream = require('./createOracleBulkInsertStream');
|
const createOracleBulkInsertStream = require('./createOracleBulkInsertStream');
|
||||||
|
|
||||||
let requireOracledb;
|
|
||||||
let platformInfo;
|
let platformInfo;
|
||||||
|
|
||||||
let oracledbValue;
|
let oracledbValue;
|
||||||
function getOracledb() {
|
function getOracledb() {
|
||||||
if (!oracledbValue) {
|
if (!oracledbValue) {
|
||||||
oracledbValue = requireOracledb();
|
oracledbValue = require('oracledb');
|
||||||
}
|
}
|
||||||
return oracledbValue;
|
return oracledbValue;
|
||||||
}
|
}
|
||||||
@@ -359,9 +358,6 @@ const driver = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
driver.initialize = dbgateEnv => {
|
driver.initialize = dbgateEnv => {
|
||||||
if (dbgateEnv.nativeModules && dbgateEnv.nativeModules['oracledb']) {
|
|
||||||
requireOracledb = dbgateEnv.nativeModules['oracledb'];
|
|
||||||
}
|
|
||||||
platformInfo = dbgateEnv.platformInfo;
|
platformInfo = dbgateEnv.platformInfo;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,12 @@ var config = {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||||
|
lodash: 'commonjs lodash',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -31,14 +31,14 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"pg": "^8.11.5",
|
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pg-copy-streams": "^6.0.6"
|
"pg-copy-streams": "^6.0.6",
|
||||||
|
"dbgate-query-splitter": "^4.11.2",
|
||||||
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"pg": "^8.11.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,14 @@ var config = {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
||||||
|
externals: {
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||||
|
lodash: 'commonjs lodash',
|
||||||
|
pg: 'commonjs pg',
|
||||||
|
'pg-copy-streams': 'commonjs pg-copy-streams',
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -30,11 +30,13 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
|
"webpack": "^5.91.0",
|
||||||
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
"dbgate-query-splitter": "^4.11.2",
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"webpack": "^5.91.0",
|
|
||||||
"webpack-cli": "^5.1.4",
|
|
||||||
"async": "^3.2.3",
|
"async": "^3.2.3",
|
||||||
"ioredis": "^5.4.1",
|
"ioredis": "^5.4.1",
|
||||||
"node-redis-dump2": "^0.5.0"
|
"node-redis-dump2": "^0.5.0"
|
||||||
|
|||||||
@@ -18,6 +18,14 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
externals: {
|
||||||
|
'dbgate-tools': 'commmonjs dbgate-tools',
|
||||||
|
'dbgate-query-splitter': 'commmonjs dbgate-query-splitter',
|
||||||
|
lodash: 'commmonjs lodash',
|
||||||
|
async: 'commmonjs async',
|
||||||
|
ioredis: 'commmonjs ioredis',
|
||||||
|
'node-redis-dump2': 'commmonjs node-redis-dump2',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -1,41 +1,44 @@
|
|||||||
{
|
{
|
||||||
"name": "dbgate-plugin-sqlite",
|
"name": "dbgate-plugin-sqlite",
|
||||||
"main": "dist/backend.js",
|
"main": "dist/backend.js",
|
||||||
"version": "5.0.0-alpha.1",
|
"version": "5.0.0-alpha.1",
|
||||||
"homepage": "https://dbgate.org",
|
"homepage": "https://dbgate.org",
|
||||||
"description": "SQLite connect plugin for DbGate",
|
"description": "SQLite connect plugin for DbGate",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/dbgate/dbgate"
|
"url": "https://github.com/dbgate/dbgate"
|
||||||
},
|
},
|
||||||
"author": "Jan Prochazka",
|
"author": "Jan Prochazka",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"dbgate",
|
"dbgate",
|
||||||
"dbgateplugin",
|
"dbgateplugin",
|
||||||
"sqlite"
|
"sqlite"
|
||||||
],
|
],
|
||||||
"files": [
|
"files": [
|
||||||
"dist",
|
"dist",
|
||||||
"icon.svg"
|
"icon.svg"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:frontend": "webpack --config webpack-frontend.config",
|
"build:frontend": "webpack --config webpack-frontend.config",
|
||||||
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
|
"build:frontend:watch": "webpack --watch --config webpack-frontend.config",
|
||||||
"build:backend": "webpack --config webpack-backend.config.js",
|
"build:backend": "webpack --config webpack-backend.config.js",
|
||||||
"build": "yarn build:frontend && yarn build:backend",
|
"build": "yarn build:frontend && yarn build:backend",
|
||||||
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-sqlite",
|
"plugin": "yarn build && yarn pack && dbgate-plugin dbgate-plugin-sqlite",
|
||||||
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-sqlite",
|
"copydist": "yarn build && yarn pack && dbgate-copydist ../dist/dbgate-plugin-sqlite",
|
||||||
"plugout": "dbgate-plugout dbgate-plugin-sqlite",
|
"plugout": "dbgate-plugout dbgate-plugin-sqlite",
|
||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"dbgate-tools": "^5.0.0-alpha.1",
|
"dbgate-plugin-tools": "^1.0.4",
|
||||||
"dbgate-plugin-tools": "^1.0.4",
|
"webpack": "^5.91.0",
|
||||||
"dbgate-query-splitter": "^4.11.2",
|
"webpack-cli": "^5.1.4"
|
||||||
"byline": "^5.0.0",
|
},
|
||||||
"webpack": "^5.91.0",
|
"dependencies": {
|
||||||
"webpack-cli": "^5.1.4"
|
"dbgate-tools": "^5.0.0-alpha.1",
|
||||||
}
|
"dbgate-query-splitter": "^4.11.2"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"better-sqlite3": "9.6.0"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -7,12 +7,10 @@ const { getLogger, createBulkInsertStreamBase, extractErrorLogData } = global.DB
|
|||||||
|
|
||||||
const logger = getLogger('sqliteDriver');
|
const logger = getLogger('sqliteDriver');
|
||||||
|
|
||||||
let requireBetterSqlite;
|
|
||||||
|
|
||||||
let betterSqliteValue;
|
let betterSqliteValue;
|
||||||
function getBetterSqlite() {
|
function getBetterSqlite() {
|
||||||
if (!betterSqliteValue) {
|
if (!betterSqliteValue) {
|
||||||
betterSqliteValue = requireBetterSqlite();
|
betterSqliteValue = require('better-sqlite3');
|
||||||
}
|
}
|
||||||
return betterSqliteValue;
|
return betterSqliteValue;
|
||||||
}
|
}
|
||||||
@@ -188,10 +186,6 @@ const driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
driver.initialize = (dbgateEnv) => {
|
driver.initialize = (dbgateEnv) => {};
|
||||||
if (dbgateEnv.nativeModules && dbgateEnv.nativeModules['better-sqlite3']) {
|
|
||||||
requireBetterSqlite = dbgateEnv.nativeModules['better-sqlite3'];
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = driver;
|
module.exports = driver;
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
externals: {
|
||||||
|
'dbgate-tools': 'commonjs dbgate-tools',
|
||||||
|
'dbgate-query-splitter': 'commonjs dbgate-query-splitter',
|
||||||
|
'better-sqlite3': 'commonjs better-sqlite3',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -31,9 +31,11 @@
|
|||||||
"prepublishOnly": "yarn build"
|
"prepublishOnly": "yarn build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"node-xml-stream-parser": "^1.0.12",
|
|
||||||
"dbgate-plugin-tools": "^1.0.7",
|
"dbgate-plugin-tools": "^1.0.7",
|
||||||
"webpack": "^5.91.0",
|
"webpack": "^5.91.0",
|
||||||
"webpack-cli": "^5.1.4"
|
"webpack-cli": "^5.1.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"node-xml-stream-parser": "^1.0.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,9 @@ var config = {
|
|||||||
// optimization: {
|
// optimization: {
|
||||||
// minimize: false,
|
// minimize: false,
|
||||||
// },
|
// },
|
||||||
|
externals: {
|
||||||
|
'node-xml-stream-parser': 'commonjs node-xml-stream-parser',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
Reference in New Issue
Block a user