Skip to content

Commit

Permalink
Add conditional import
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Dec 20, 2023
1 parent 4de2166 commit 4e511a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dispatch/static/dispatch/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ const app = createApp(App)
// Configure sentry
let SENTRY_ENABLED = import.meta.env.VITE_DISPATCH_SENTRY_ENABLED
let SENTRY_DSN = import.meta.env.VITE_DISPATCH_SENTRY_DSN
let FORMKIT_ENTERPRISE_TOKEN = import.meta.env.FORMKIT_ENTERPRISE_TOKEN

if (FORMKIT_ENTERPRISE_TOKEN) {
import("@formkit-enterprise/pro").then((module) => {

Check failure on line 23 in src/dispatch/static/dispatch/src/main.js

View workflow job for this annotation

GitHub Actions / build

'module' is defined but never used
// Use the module here
})
}

if (SENTRY_ENABLED) {
const APP_HOSTNAME = document.location.host
Expand Down

0 comments on commit 4e511a6

Please sign in to comment.