https://github.com/gssify/export-all-loader
Transforms export * from 'xxx' to export {...} which can avoid `Object.defineProperty` in IE8
https://github.com/gssify/export-all-loader
Last synced: 27 days ago
JSON representation
Transforms export * from 'xxx' to export {...} which can avoid `Object.defineProperty` in IE8
- Host: GitHub
- URL: https://github.com/gssify/export-all-loader
- Owner: gssify
- License: mit
- Created: 2016-10-19T09:19:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T07:58:20.000Z (over 9 years ago)
- Last Synced: 2025-10-12T02:43:44.545Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# export-all-loader    
> Babel preloader for Webpack
Transforms your `export * from 'xxx'` to `export {...}` which can avoid `Object.defineProperty` in IE8.
## Installation
```bash
$ npm install export-all-loader
```
## Quick Start
**webpack config:**
```js
module.exports = {
module: {
preLoaders: [
{
test: /\.js$/,
loader: 'export-all'
}
]
}
}
```
## Examples
**Input:**
```js
export * from 'a.js';
export * from 'b.js';
```
**Output:**
```js
import {a1, a2} from 'a.js';
import {b1, b2} from 'b.js';
export {a1, a2, b1, b2}
```
## Problems
* Not support `export default`
* Cannot use with `babel-plugin-module-resolver`