Skip to content

Fix StationPropertyRenderer import#175

Merged
saskliutas merged 4 commits intomasterfrom
fix_app
Dec 17, 2024
Merged

Fix StationPropertyRenderer import#175
saskliutas merged 4 commits intomasterfrom
fix_app

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
3 checks passed
@saskliutas saskliutas deleted the fix_app branch December 17, 2024 15:57
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