@politico/graphics-kit
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@politico/graphics-kit", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "src/index.js", | ||
@@ -22,3 +22,5 @@ "module": "src/index.js", | ||
"@politico/eslint-config-interactives": "^0.0.5", | ||
"babel-eslint": "^10.0.1", | ||
"d3": "^5.9.2", | ||
"eslint": "^5.16.0", | ||
"glob": "^7.1.3", | ||
@@ -25,0 +27,0 @@ "lodash": "^4.17.11", |
@@ -14,5 +14,5 @@ ![](https://www.politico.com/interactives/cdn/images/badge.svg) | ||
```javascript | ||
import { ChartComponent, d3 } from '@politico/graphics-kit'; | ||
import { BaseChart, d3 } from '@politico/graphics-kit'; | ||
class MyChart extends ChartComponent { | ||
class MyChart extends BaseChart { | ||
defaultProps = { | ||
@@ -19,0 +19,0 @@ stroke: '#ccc', |
@@ -1,3 +0,1 @@ | ||
import path from 'path'; | ||
import glob from 'glob'; | ||
import alias from 'rollup-plugin-alias'; | ||
@@ -13,9 +11,12 @@ import babel from 'rollup-plugin-babel'; | ||
comments: false, | ||
presets: [ | ||
['@babel/preset-env', { modules: false }], | ||
'@babel/preset-react', | ||
], | ||
plugins: [ | ||
'@babel/proposal-class-properties', | ||
], | ||
// presets: [ | ||
// ['@babel/preset-env', { | ||
// modules: false, | ||
// targets: { esmodules: true }, | ||
// }], | ||
// '@babel/preset-react', | ||
// ], | ||
// plugins: [ | ||
// '@babel/proposal-class-properties', | ||
// ], | ||
}; | ||
@@ -26,3 +27,3 @@ | ||
output: { | ||
file: pkg.module, | ||
file: 'dist/index.mjs', | ||
format: 'es', | ||
@@ -29,0 +30,0 @@ }, |
Sorry, the diff of this file is not supported yet
156049
12
448
14