Skip to content

Instantly share code, notes, and snippets.

@jehiah
Created February 8, 2016 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jehiah/5e2d2eb4bf9a827406fc to your computer and use it in GitHub Desktop.
Save jehiah/5e2d2eb4bf9a827406fc to your computer and use it in GitHub Desktop.
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 }),
json(),
babel() ]
};
#!/bin/bash
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