Skip to content

Instantly share code, notes, and snippets.

@jehiah jehiah/main.js
Created Feb 8, 2016

What would you like to do?
import * as d3 from "d3";
"name": "rollup_await_error",
"version": "0.1.0",
"dependencies": {
"d3": "^4.0.0-alpha.14"
"devDependencies": {
"babel": "^6.5.1",
"babel-preset-es2015-rollup": "^1.1.1",
"rollup": "^0.25.3",
"rollup-plugin-babel": "^2.3.9",
"rollup-plugin-json": "^2.0.0",
"rollup-plugin-npm": "^1.4.0"
import babel from 'rollup-plugin-babel';
import npm from 'rollup-plugin-npm';
import json from "rollup-plugin-json";
export default {
entry: "main.js",
dest: "out.js",
format: 'cjs',
plugins: [ npm({ jsnext: true, main: true }),
babel() ]
npm install rollup --save-dev
npm install babel --save-dev
npm install babel-preset-es2015-rollup --save-dev
npm install rollup-plugin-npm --save-dev
npm install rollup-plugin-babel --save-dev
npm install rollup-plugin-json --save-dev
npm install d3@next --save
./node_modules/.bin/rollup -c rollup.config.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.