Skip to content

v3.0.0-beta.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@danieldiekmeier 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!

v2.0.1...v3.0.0-beta.1