Skip to content

Commit 8a34cdd

Browse files
justaleverclaude
andcommitted
Revert demo to bundled build to avoid CORS issues
The importmap demo was hitting CORS issues with unpkg. Use bundled build which has all dependencies included. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8c9e953 commit 8a34cdd

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

index.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,19 @@
2020
<script>hljs.highlightAll();</script>
2121

2222
<!--
23-
Importmap Configuration (unpkg CDN)
23+
Bundled Build Configuration
2424
25-
This demo uses the importmap distribution from unpkg CDN.
26-
This is the recommended setup for Rails 7+ applications.
25+
This demo uses the BUNDLED ESM version with all dependencies included.
26+
No external CDN dependencies needed (except Stimulus).
2727
2828
For Rails importmap apps, see IMPORTMAP.md for setup instructions.
2929
For npm/bundler apps, see BUILD.md for setup instructions.
3030
-->
3131
<script type="importmap">
3232
{
3333
"imports": {
34-
"@hotwired/stimulus": "https://unpkg.com/@hotwired/stimulus@3.2.2/dist/stimulus.js",
35-
"railsui-stimulus": "https://unpkg.com/railsui-stimulus@1.1.1/dist/importmap/index.js",
36-
"tippy.js": "https://unpkg.com/tippy.js@6.3.7/dist/esm/tippy.esm.js",
37-
"@popperjs/core": "https://unpkg.com/@popperjs/core@2.11.8/dist/esm/index.js",
38-
"flatpickr": "https://unpkg.com/flatpickr@4.6.13/dist/esm/index.js",
39-
"hotkeys-js": "https://unpkg.com/hotkeys-js@3.13.15/dist/hotkeys.esm.js",
40-
"stimulus-use": "https://unpkg.com/stimulus-use@0.52.2/dist/index.js"
34+
"@hotwired/stimulus": "https://ga.jspm.io/npm:@hotwired/stimulus@3.2.2/dist/stimulus.js",
35+
"railsui-stimulus": "./dist/railsui-stimulus.module.js"
4136
}
4237
}
4338
</script>

0 commit comments

Comments
 (0)