Commit 7b626cc 1 parent 2f93b1a commit 7b626cc Copy full SHA for 7b626cc
File tree 4 files changed +16
-2
lines changed
integration-tests/esbuild
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const tracer = require('../../').init() // dd-trace
11
11
const assert = require ( 'assert' )
12
12
const express = require ( 'express' )
13
13
const http = require ( 'http' )
14
+ require ( 'knex' ) // has dead code paths for multiple instrumented packages
14
15
15
16
const app = express ( )
16
17
const PORT = 31415
Original file line number Diff line number Diff line change @@ -9,7 +9,18 @@ esbuild.build({
9
9
outfile : 'out.js' ,
10
10
plugins : [ ddPlugin ] ,
11
11
platform : 'node' ,
12
- target : [ 'node16' ]
12
+ target : [ 'node16' ] ,
13
+ external : [
14
+ // dead code paths introduced by knex
15
+ 'pg' ,
16
+ 'mysql2' ,
17
+ 'better-sqlite3' ,
18
+ 'sqlite3' ,
19
+ 'mysql' ,
20
+ 'oracledb' ,
21
+ 'pg-query-stream' ,
22
+ 'tedious'
23
+ ]
13
24
} ) . catch ( ( err ) => {
14
25
console . error ( err ) // eslint-disable-line no-console
15
26
process . exit ( 1 )
Original file line number Diff line number Diff line change 19
19
"license" : " ISC" ,
20
20
"dependencies" : {
21
21
"esbuild" : " 0.16.12" ,
22
- "express" : " ^4.16.2"
22
+ "express" : " ^4.16.2" ,
23
+ "knex" : " ^2.4.2"
23
24
}
24
25
}
Original file line number Diff line number Diff line change 120
120
"graphql" : " 0.13.2" ,
121
121
"int64-buffer" : " ^0.1.9" ,
122
122
"jszip" : " ^3.5.0" ,
123
+ "knex" : " ^2.4.2" ,
123
124
"mkdirp" : " ^0.5.1" ,
124
125
"mocha" : " 8" ,
125
126
"msgpack-lite" : " ^0.1.26" ,
You can’t perform that action at this time.
0 commit comments