Skip to content

Commit d4fbb38

Browse files
authored
fix(orm): add webpack magic comment to suppress bundler warnings for optional dependencies (#2476)
1 parent 2c32dc3 commit d4fbb38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/orm/src/client/crud/dialects/postgresql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class PostgresCrudDialect<Schema extends SchemaDef> extends LateralJoinDi
3737
// override node-pg's default type parser to resolve the timezone handling issue
3838
// with "TIMESTAMP WITHOUT TIME ZONE" fields
3939
// https://github.com/brianc/node-postgres/issues/429
40-
import('pg')
40+
import(/* webpackIgnore: true */ 'pg') // suppress bundler analysis warnings
4141
.then((pg) => {
4242
pg.types.setTypeParser(pg.types.builtins.TIMESTAMP, (value) => {
4343
if (typeof value !== 'string') {

0 commit comments

Comments
 (0)