Skip to content

Commit 4a26362

Browse files
committed
Fix module export
1 parent 5e9bfe4 commit 4a26362

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

example/demo.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React, {Component} from 'react';
22
import ReactDom from 'react-dom';
3-
import diffract from 'diffract';
4-
5-
const {Donut, BarGraph} = diffract;
3+
import {Donut, BarGraph} from 'diffract';
64

75
const colors = ['#E91E63', '#2196F3', '#FF9800', '#4CAF50', '#673AB7'];
86
const width = 320;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "diffract",
33
"author": "Amey Sakhadeo",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"description": "A set of d3 based visualization components built for React",
66
"main": "build/index.js",
77
"files": [

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Donut from './Donut';
22
import BarGraph from './BarGraph';
33

44

5-
export default {
5+
module.exports = {
66
Donut,
77
BarGraph
88
};

0 commit comments

Comments
 (0)