All Projects → thomaschaaf → esbuild-plugin-import-glob

thomaschaaf / esbuild-plugin-import-glob

Licence: MIT license
A esbuild plugin which allows to import multiple files using the glob syntax.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to esbuild-plugin-import-glob

esbuild-plugin-svgr
A plugin for esbuild that enables importing *.svg files as React components.
Stars: ✭ 27 (-3.57%)
Mutual labels:  esbuild, esbuild-plugin
esbuild-plugin-alias
esbuild plugin for path aliases
Stars: ✭ 20 (-28.57%)
Mutual labels:  esbuild, esbuild-plugin
build-plugin
Track your build performances like never before.
Stars: ✭ 45 (+60.71%)
Mutual labels:  esbuild, esbuild-plugin
esbuild-css-modules-plugin
A esbuild plugin to bundle css modules into js(x)/ts(x)
Stars: ✭ 64 (+128.57%)
Mutual labels:  esbuild, esbuild-plugin
lint-deps
Lint for unused or missing dependencies in your node.js projects. Customize with plugins or configuration.
Stars: ✭ 48 (+71.43%)
Mutual labels:  import
import-cli-simple
This the meta package for Pacemaker Community, a Symfony based CLI application that provides import functionality for products, categories, attributes, and attribute-sets. The default format is CSV, adapters for XML are also available. The application can be declaratively extended by additional operations, which can be used to reassemble and exe…
Stars: ✭ 69 (+146.43%)
Mutual labels:  import
great-migration
Copy objects from Rackspace to S3
Stars: ✭ 15 (-46.43%)
Mutual labels:  import
esbuild-plugin-purescript
esbuild integration for PureScript
Stars: ✭ 27 (-3.57%)
Mutual labels:  esbuild
typescript-boilerplate
A modern TypeScript project setup, for Node.js and browsers (using esbuild).
Stars: ✭ 502 (+1692.86%)
Mutual labels:  esbuild
meteor-graphql
Compiler plugin that supports GraphQL files in Meteor
Stars: ✭ 56 (+100%)
Mutual labels:  import
importar
R package to import/load packages or functions the 'Python' way
Stars: ✭ 17 (-39.29%)
Mutual labels:  import
excel mysql
Module for import Excel files to MySQL table and export MySQL table to Excel file using PHPExcel
Stars: ✭ 30 (+7.14%)
Mutual labels:  import
janusgraph-util
util for janusgraph to import data and so on/Janusgraph 导数据等工具
Stars: ✭ 72 (+157.14%)
Mutual labels:  import
commercetools-sdk-typescript
The e-commerce SDK from commercetools for JavaScript written in TypeScript.
Stars: ✭ 25 (-10.71%)
Mutual labels:  import
aegir
AEgir - Automated JavaScript project building
Stars: ✭ 73 (+160.71%)
Mutual labels:  esbuild
nanobundle
Yet another build tool for libraries, powered by esbuild
Stars: ✭ 45 (+60.71%)
Mutual labels:  esbuild
konan
find all require/import calls by walking the AST
Stars: ✭ 48 (+71.43%)
Mutual labels:  import
babel-loader-lerna-cra
Transpile Create-React-App imports in Lerna projects.
Stars: ✭ 30 (+7.14%)
Mutual labels:  import
qgis-kmltools-plugin
Fast KML Import and Export Plugin for QGIS
Stars: ✭ 45 (+60.71%)
Mutual labels:  import
vite-plugin-cloudflare
🔥Building Cloudflare workers is faster and easier using vite-plugin-cloudflare with node builtins like process and stream
Stars: ✭ 108 (+285.71%)
Mutual labels:  esbuild

esbuild-plugin-import-glob

A esbuild plugin which allows to import multiple files using the glob syntax.

Basic Usage

  1. Install this plugin in your project:

    npm install --save-dev esbuild-plugin-import-glob
  2. Add this plugin to your esbuild build script:

    +const ImportGlobPlugin = require('esbuild-plugin-import-glob');
     ...
     esbuild.build({
       ...
       plugins: [
    +    ImportGlobPlugin(),
       ],
     })
  3. Use import or require

    // @ts-ignore
    import migrationsArray from './migrations/**/*';
    
    // contains default export
    migrationsArray[0].default;
    // @ts-ignore
    import * as migrations from './migrations/**/*';
    
    const { default: migrationsArray, filenames } = migrations;
    const { default: migrationsArray, filenames } = require('./migrations/**/*');
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].