v3.0.0-beta.1
Pre-release
Pre-release
danieldiekmeier
released this
25 Mar 15:45
·
6 commits
to main
since this release
This version adds a new createViteGlobResolver
function, which allows you to use Vite's Glob Import:
import { Application } from "@hotwired/stimulus"
import StimulusControllerResolver, { createViteGlobResolver } from 'stimulus-controller-resolver'
const application = Application.start()
StimulusControllerResolver.install(application, createViteGlobResolver(
import.meta.glob('../controllers/*-controller.js'),
import.meta.glob('../../components/**/*-controller.js')
))
We're also no longer using microbundle
, so going forward this package is ESM only. I think this should be fine because I think this package is only used in conjunction with bundlers, anyway? We'll see!