mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 17:24:00 +00:00
webpack native module
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
"@types/lodash": "^4.14.149",
|
||||
"dbgate-types": "^1.0.0",
|
||||
"env-cmd": "^10.1.0",
|
||||
"node-loader": "^1.0.2",
|
||||
"nodemon": "^2.0.2",
|
||||
"typescript": "^3.7.4",
|
||||
"webpack": "^4.42.0",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
const msnodesqlv8 = require('msnodesqlv8');
|
||||
const msnodesqlv8 = () => require('msnodesqlv8');
|
||||
|
||||
module.exports = { msnodesqlv8 };
|
||||
|
||||
@@ -8,24 +8,27 @@ var config = {
|
||||
app: './index.js',
|
||||
},
|
||||
target: 'node',
|
||||
node: {
|
||||
__dirname: false,
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
filename: 'bundle.js',
|
||||
libraryTarget: 'commonjs2',
|
||||
},
|
||||
|
||||
// optimization: {
|
||||
// minimize: false,
|
||||
// },
|
||||
// optimization: {
|
||||
// minimize: false,
|
||||
// },
|
||||
|
||||
// module: {
|
||||
// rules: [
|
||||
// {
|
||||
// test: /\.js$/,
|
||||
// exclude: /node_modules/
|
||||
// },
|
||||
// ],
|
||||
// },
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.node$/,
|
||||
use: 'node-loader',
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new webpack.IgnorePlugin({
|
||||
checkResource(resource) {
|
||||
|
||||
@@ -57,7 +57,7 @@ export default function ConnectionModal({ modalState, connection = undefined })
|
||||
<option value=""></option>
|
||||
<option value="sspi">Windows Authentication</option>
|
||||
<option value="sql">SQL Server Authentication</option>
|
||||
<option value="tedious">Tedious portable Driver</option>
|
||||
<option value="tedious">Use "tedious" driver</option>
|
||||
</FormSelectField>
|
||||
<FormTextField label="Server" name="server" />
|
||||
<FormTextField label="Port" name="port" />
|
||||
|
||||
Reference in New Issue
Block a user