Sha256: 2b66424f4e82ab1c624d2676ca85820fb0f54e54cfce9bb4f68ffd292aacd550

Contents?: true

Size: 549 Bytes

Versions: 2

Compression:

Stored size: 549 Bytes

Contents

import { Application } from "@hotwired/stimulus"

const application = Application.start()

// Configure Stimulus development experience
application.warnings = true
application.debug    = false
window.Stimulus      = application

// Import and register all your controllers from the importmap under controllers/*
import { registerControllersFrom } from "@hotwired/stimulus-importmap-autoloader"
const importmap = JSON.parse(document.querySelector("script[type=importmap]").text).imports
registerControllersFrom("controllers", importmap, application)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stimulus-rails-0.4.1 lib/install/app/javascript/controllers/index_for_importmap.js
stimulus-rails-0.4.0 lib/install/app/javascript/controllers/index_for_importmap.js