1.0.3 • Published 1 year ago

@eklingen/esbuild-glob-importer v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NOTE: This package is DEPRECATED. Use the esbuildPlugin from https://github.com/eklingen/glob-importers/ instead!


esbuild-glob-importer

ESBuild plugin to add globbing support to import statements.

Installation

Add this to your esbuild.config.js:

import globImporterPlugin from './esbuild.glob-importer.js'
plugins: [globImporterPlugin()],

Usage

import('components/**/*.js')

will get expanded to:

import('components/button/button.js')
import('components/link/link.js')
import('components/video/video.js')

Dependencies

This package requires "fast-glob".


Copyright (c) 2024 Elco Klingen. MIT License.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago