NOTE: This package is DEPRECATED. Use the esbuildPlugin from https://github.com/eklingen/glob-importers/ instead!
ESBuild plugin to add globbing support to import statements.
Add this to your esbuild.config.js
:
import globImporterPlugin from './esbuild.glob-importer.js'
plugins: [globImporterPlugin()],
import('components/**/*.js')
will get expanded to:
import('components/button/button.js')
import('components/link/link.js')
import('components/video/video.js')
This package requires "fast-glob".
Copyright (c) 2024 Elco Klingen. MIT License.