glob-export-loader
v0.2.1
Published
Webpack loader that enables glob patterns in ES6 exports and imports
Downloads
13
Maintainers
Readme
glob-export-loader
Webpack loader that enables glob patterns in ES6 exports and imports.
Re-export modules as namescape
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
export * from './inc/*.js';
//↓↓↓
export * from './inc/bar.js';
export * from './inc/foo.js';
Import modules as namescape
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
import { Foo, Bar } from './inc/*.js';
//↓↓↓
import { Bar } from './inc/bar.js';
import { Foo } from './inc/foo.js';