chore: Use imports as ES modules
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import * as Sentry from './helpers/sentry.ee';
|
||||
import appConfig from './config/app';
|
||||
import * as Sentry from './helpers/sentry.ee.js';
|
||||
import appConfig from './config/app.js';
|
||||
|
||||
Sentry.init();
|
||||
|
||||
import './config/orm';
|
||||
import './helpers/check-worker-readiness';
|
||||
import './workers/flow';
|
||||
import './workers/trigger';
|
||||
import './workers/action';
|
||||
import './workers/email';
|
||||
import './workers/delete-user.ee';
|
||||
import './config/orm.js';
|
||||
import './helpers/check-worker-readiness.js';
|
||||
import './workers/flow.js';
|
||||
import './workers/trigger.js';
|
||||
import './workers/action.js';
|
||||
import './workers/email.js';
|
||||
import './workers/delete-user.ee.js';
|
||||
|
||||
if (appConfig.isCloud) {
|
||||
import('./workers/remove-cancelled-subscriptions.ee');
|
||||
import('./queues/remove-cancelled-subscriptions.ee');
|
||||
import('./workers/remove-cancelled-subscriptions.ee.js');
|
||||
import('./queues/remove-cancelled-subscriptions.ee.js');
|
||||
}
|
||||
|
||||
import telemetry from './helpers/telemetry';
|
||||
import telemetry from './helpers/telemetry/index.js';
|
||||
|
||||
telemetry.setServiceType('worker');
|
||||
|
Reference in New Issue
Block a user