# glob-export-loader

> Webpack loader that enables glob patterns in ES6 exports and imports

Latest version **0.2.1** (published 2022-06-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install glob-export-loader
pnpm add glob-export-loader
yarn add glob-export-loader
bun add glob-export-loader
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2022-06-04 |
| First published | 2022-03-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex Kulikov |
| Maintainers | kulikovalexei |
| Keywords | webpack, loader, export, import, glob, es6 |

## Links

- npm: https://www.npmjs.com/package/glob-export-loader
- npm.io page: https://npm.io/package/glob-export-loader

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2022-06-04
- 0.2.0 — 2022-06-03
- 0.1.1 — 2022-05-24
- 0.1.0 — 2022-05-06
- 0.0.8 — 2022-04-10
- 0.0.7 — 2022-03-31
- 0.0.6 — 2022-03-31
- 0.0.5 — 2022-03-30
- 0.0.4 — 2022-03-30
- 0.0.3 — 2022-03-30
- 0.0.2 — 2022-03-30
- 0.0.1 — 2022-03-29

## README

# glob-export-loader

Webpack loader that enables glob patterns in ES6 exports and imports.

### Re-export modules as namescape
```js
export { default as FooBar } from './inc/*.js';
//↓↓↓
import * as _varb075190 from './inc/bar.js';
import * as _varf12325a from './inc/foo.js';
export const FooBar = require('lodash/assign')({}, _varb075190, _varf12325a);
```

### Export all modules
```js
export * from './inc/*.js';
//↓↓↓
export * from './inc/bar.js';
export * from './inc/foo.js';
```

### Import modules as namescape
```js
import * as FooBar from './inc/*.js';
//↓↓↓
import * as _varb075190 from './inc/bar.js';
import * as _varf12325a from './inc/foo.js';
const FooBar = require('lodash/assign')({}, _varb075190, _varf12325a);
```

### Import named modules
```js
import { Foo, Bar } from './inc/*.js';
//↓↓↓
import { Bar } from './inc/bar.js';
import { Foo } from './inc/foo.js';
```

---
_Source: https://npm.io/package/glob-export-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
