import buble from 'rollup-plugin-buble';
import json from 'rollup-plugin-json';
import nodeResolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';

var external = process.env.DEPS ? [] : [ 'acorn-jsx', 'magic-string' ];

export default {
	entry: 'src/index.js',
	moduleName: 'buble',
	plugins: [
		json(),
		commonjs(),
		buble({
			include: [ 'src/**', 'node_modules/acorn/**' ],
			transforms: {
				dangerousForOf: true
			}
		}),
		nodeResolve({
			jsnext: true,
			skip: external
		})
	],
	external: external,
	globals: {
		'acorn-jsx': 'acorn',
		'magic-string': 'MagicString'
	},
	sourceMap: true
};

@@ -404,16 +404,55 @@
 corn/**'
+, 'node_modules/acorn-object-spread/**'
  %5D,%0A%09%09%09t

fix 0.12 tests, hopefully