-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
I am using this gem (v1.2.5) with a Rails 8.0.2 app and Ruby 3.4.3.
I am getting the following error:
Terser::Error: Unexpected token: name (Promise) (Terser::Error)
--
20 import "alchemy_admin/components/overlay"
21 import "alchemy_admin/components/page_select"
22 import "alchemy_admin/components/preview_window"
23 import "alchemy_admin/components/select"
24 import "alchemy_admin/components/spinner"
25 import "alchemy_admin/components/tags_autocomplete"
26 import "alchemy_admin/components/tinymce"
27
=> await Promise.race([
29 // Load all global custom elements
30 Promise.allSettled([
31 customElements.whenDefined("alchemy-button"),
32 customElements.whenDefined("alchemy-icon"),
33 customElements.whenDefined("alchemy-growl"),
34 customElements.whenDefined("alchemy-message"),
35 customElements.whenDefined("alchemy-spinner")
36 ]),
==
Is not the Promise syntax supposed to work with Terser?
How could I debug this issue?
Thank you in advance for your help.
Metadata
Metadata
Assignees
Labels
No labels