0.4.1 • Published 2 months ago

@talend/babel-plugin-import-d3 v0.4.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

@talend/babel-plugin-import-d3

This module is a babel plugin that transform imports from d3-shape and other d3 internal plugins, into imports from d3.

Before

import { select, event } from 'd3-selection';
import { arc as foo, pie } from 'd3-shape';
import { scaleBand } from 'd3-scale';
import { csv } from 'd3-fetch'`,

After

import { select, event, arc as foo, pie, scaleBand, csv } from 'd3';`,

How to use

Installation

npm i --dev @talend/babel-plugin-import-d3
yarn add -D @talend/babel-plugin-import-d3

Configuration

// .babelrc.json
{
	"plugins": ["@talend/babel-plugin-import-d3"]
}
0.4.1

2 months ago

0.4.0

3 months ago

0.3.1

5 months ago

0.3.0

6 months ago

0.2.1

2 years ago

0.2.0

3 years ago

0.1.0

3 years ago