Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix StationPropertyRenderer import #175

Merged
merged 4 commits into from
Dec 17, 2024
Merged

Fix StationPropertyRenderer import #175

merged 4 commits into from
Dec 17, 2024

Conversation

saskliutas
Copy link
Member

Looks like top-level await import does not work in vite production builds due to problem in how rollup chunking works: rollup/rollup#4708

We end up in a situation were ITwinJsApp chunk is awaiting for StationPropertyValueRenderer chunk to load while StationPropertyValueRenderer imports stuff from ITwinJsApp. Replaced await import that was needed due to StationPropertyValueRenderer module having side effects with registerStationPropertyFeature.

Additionally:

  • Updated auth scopes.
  • Update vite config to place files from public folder in correct location
  • Update vite config to build only json language worker for monaco editor as it is the only language rules editor uses.

@saskliutas saskliutas requested a review from a team as a code owner December 17, 2024 14:59
@JonasDov JonasDov linked an issue Dec 17, 2024 that may be closed by this pull request
@saskliutas saskliutas merged commit e11c91a into master Dec 17, 2024
4 checks passed
@saskliutas saskliutas deleted the fix_app branch December 17, 2024 15:57
@@ -57,7 +57,7 @@ const AuthorizationProvider = clientId
redirect_uri: "/auth/callback",
silent_redirect_uri: "/auth/silent",
post_logout_redirect_uri: "/",
scope: "itwinjs imodelaccess:read imodels:read itwins:read openid profile",
scope: "itwin-platform itwinjs openid profile",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only scope we need should be itwin-platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to latest dependencies
3 participants