Skip to content

Commit

Permalink
fix(react core): change main bundle to umd in core, and update import…
Browse files Browse the repository at this point in the history
…s in react
  • Loading branch information
theiliad committed Jun 26, 2019
1 parent 4783d59 commit df9c7c3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/core/index.umd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This file is needed for smooth imports
// of "@carbon/charts" from other packages
// in the monorepo
export * from "./dist/index.umd";
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@carbon/charts",
"version": "0.12.3",
"description": "Carbon charting components",
"main": "./index.umd.js",
"scripts": {
"demo:server": "webpack-dev-server --config webpack.config.js --watch",
"demo:build": "webpack --config webpack.config.js && typedoc --out ./demo/bundle/documentation ./src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/bar-chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { BarChart as BC } from "@carbon/charts/dist/index.umd.js";
import { BarChart as BC } from "@carbon/charts";
import BaseChart from "./base-chart";

export default class BarChart extends BaseChart {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/donut-chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { DonutChart as DC } from "@carbon/charts/dist/index.umd.js";
import { DonutChart as DC } from "@carbon/charts";
import BaseChart from "./base-chart";

export default class DonutChart extends BaseChart {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/line-chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { LineChart as LC } from "@carbon/charts/dist/index.umd.js";
import { LineChart as LC } from "@carbon/charts";
import BaseChart from "./base-chart";

export default class LineChart extends BaseChart {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/pie-chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

import { PieChart as PC } from "@carbon/charts/dist/index.umd.js";
import { PieChart as PC } from "@carbon/charts";
import BaseChart from "./base-chart";

export default class PieChart extends BaseChart {
Expand Down

0 comments on commit df9c7c3

Please sign in to comment.