0.0.3 • Published 4 years ago

@hqjs/babel-plugin-transform-export-all v0.0.3

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

https://hqjs.org

TTransform export all to named imports and export default.

Installation

npm install hqjs@babel-plugin-transform-export-all

Transformation

Plugin transforms export all to named imports and export default

export * from "./hello";
export * from "./nameEdit";
export * from "./colorBrowser";
export * from "./colorPicker";
export * from "./sidebar";

will turn into

import * as _ref from "./hello";
import * as _ref2 from "./nameEdit";
import * as _ref3 from "./colorBrowser";
import * as _ref4 from "./colorPicker";
import * as _ref5 from "./sidebar";
export default Object.assign({}, _ref, _ref2, _ref3, _ref4, _ref5);