You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really appreciate your efforts to get this Rails starter for Clerk!
With Rails 7 release, there is a importmap approach that will not require npm or yarn nor webpacker gem to transpile code. Also, instead of sprockets, we can now use propshaft which is much simpler.
The current version loads a plain javascript version that relies on a window.Clerk declaration and requires an extra bit of code that could be potentially removed... e.g. the excerpts below:
Hello there,
I really appreciate your efforts to get this Rails starter for Clerk!
With Rails 7 release, there is a
importmap
approach that will not requirenpm
oryarn
norwebpacker
gem to transpile code. Also, instead ofsprockets
, we can now usepropshaft
which is much simpler.The current version loads a plain
javascript
version that relies on awindow.Clerk
declaration and requires an extra bit of code that could be potentially removed... e.g. the excerpts below:https://github.com/clerkinc/clerk-rails-starter/blob/9824483bcd7592d5dbfd007a9260831b793d2f7d/app/helpers/application_helper.rb#L2-L15
https://github.com/clerkinc/clerk-rails-starter/blob/9824483bcd7592d5dbfd007a9260831b793d2f7d/app/javascript/packs/clerk.js#L1-L3
Is there a
ES6
version ofclerk.browser.js
that could be used in order to leverage that?Keep rocking!
The text was updated successfully, but these errors were encountered: