Skip to content

Commit cc434eb

Browse files
authored
fix: umd build default export (#1219)
* fix: umd build default export * default export
1 parent 3f12896 commit cc434eb

File tree

5 files changed

+1354
-1652
lines changed

5 files changed

+1354
-1652
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,21 @@
2222
],
2323
"devDependencies": {
2424
"@cubejs-backend/linter": "file:./packages/cubejs-linter",
25-
"@babel/core": "^7.0.1",
26-
"@babel/plugin-transform-runtime": "^7.0.0",
27-
"@babel/preset-env": "^7.0.0",
25+
"@babel/core": "^7.12.0",
26+
"@babel/plugin-transform-runtime": "^7.12.0",
27+
"@babel/preset-env": "^7.12.0",
2828
"@babel/preset-react": "^7.0.0",
29-
"@babel/runtime": "^7.0.0",
29+
"@babel/runtime": "^7.12.0",
3030
"@cubejs-client/core": "^0.17.10",
3131
"@rollup/plugin-alias": "^3.1.1",
32-
"@rollup/plugin-babel": "^5.2.0",
33-
"@rollup/plugin-commonjs": "^15.0.0",
32+
"@rollup/plugin-babel": "^5.2.1",
33+
"@rollup/plugin-commonjs": "^15.1.0",
3434
"@rollup/plugin-node-resolve": "^9.0.0",
3535
"@rollup/plugin-replace": "^2.3.3",
3636
"@types/fs-extra": "^9.0.1",
3737
"@types/jest": "^26.0.3",
3838
"babel-eslint": "^10.1.0",
3939
"babel-runtime": "^6.26.0",
40-
"babelrc-rollup": "^3.0.0",
4140
"eslint-config-react-app": "^5.2.1",
4241
"eslint-plugin-flowtype": "^5.2.0",
4342
"eslint-plugin-import": "^2.18.2",
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
const index = require('./index.js');
1+
import cubejs from './index';
2+
import * as clientCoreExports from './index';
23

3-
module.exports = index;
4+
Object.keys(clientCoreExports).forEach((key) => {
5+
cubejs[key] = clientCoreExports[key];
6+
});
7+
8+
export default cubejs;

0 commit comments

Comments
 (0)