Skip to content

Commit

Permalink
fix: umd build default export (#1219)
Browse files Browse the repository at this point in the history
* fix: umd build default export

* default export
  • Loading branch information
vasilev-alex committed Oct 16, 2020
1 parent 3f12896 commit cc434eb
Show file tree
Hide file tree
Showing 5 changed files with 1,354 additions and 1,652 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,21 @@
],
"devDependencies": {
"@cubejs-backend/linter": "file:./packages/cubejs-linter",
"@babel/core": "^7.0.1",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/core": "^7.12.0",
"@babel/plugin-transform-runtime": "^7.12.0",
"@babel/preset-env": "^7.12.0",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.0.0",
"@babel/runtime": "^7.12.0",
"@cubejs-client/core": "^0.17.10",
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-babel": "^5.2.0",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-replace": "^2.3.3",
"@types/fs-extra": "^9.0.1",
"@types/jest": "^26.0.3",
"babel-eslint": "^10.1.0",
"babel-runtime": "^6.26.0",
"babelrc-rollup": "^3.0.0",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-flowtype": "^5.2.0",
"eslint-plugin-import": "^2.18.2",
Expand Down
9 changes: 7 additions & 2 deletions packages/cubejs-client-core/src/index.umd.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
const index = require('./index.js');
import cubejs from './index';
import * as clientCoreExports from './index';

module.exports = index;
Object.keys(clientCoreExports).forEach((key) => {
cubejs[key] = clientCoreExports[key];
});

export default cubejs;

0 comments on commit cc434eb

Please sign in to comment.