---
title: "Deferred Entrypoint"
description: "Learn about running Sentry without the --import flag."
url: https://docs.sentry.io/platforms/javascript/guides/express/install/esm-without-import/
---

# Deferred Entrypoint | Sentry for Express

Are you unsure if you should use this installation method? Review our [installation methods](https://docs.sentry.io/platforms/javascript/guides/express/install.md).

If you can neither run your application with `--import`, nor use a bundler, you can use a deferred entrypoint to run your application with Sentry.

This assumes you've already created an `instrument.mjs` file that calls `Sentry.init()`, as shown in the [quickstart](https://docs.sentry.io/platforms/javascript/guides/express.md).

Split the entrypoint in two. The static import runs `Sentry.init()`, and the dynamic `import()` loads your application afterwards, so your application's modules are wrapped:

```javascript
import "./instrument.mjs";

await import("./app.mjs");
```

Your application code stays in `app.mjs` and needs no changes. Start it as usual:

```bash
node main.mjs
```
