When I use the Sentry in an Electron App, I got an error about "Cannot find module 'tslib'"

When I use the Sentry in my App by electron . start, It work well. But I got Cannot find module 'tslib' when I build a release package and start.

const Sentry = require('@sentry/electron');
Sentry.init({
  dsn: 'https://eb9ed85936c24309be44316dd588fb5d@sentry.io/5106075',
  environment: 'test'
});