pax_global_header00006660000000000000000000000064130240522430014505gustar00rootroot0000000000000052 comment=d37080b8885c0f047c33492505fee6d7ace147cb rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/000077500000000000000000000000001302405224300232415ustar00rootroot00000000000000rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/.eslintrc000066400000000000000000000012111302405224300250600ustar00rootroot00000000000000{ "rules": { "indent": [ 2, "tab", { "SwitchCase": 1 } ], "linebreak-style": [ 2, "unix" ], "semi": [ 2, "always" ], "keyword-spacing": [ 2, { "before": true, "after": true } ], "space-before-blocks": [ 2, "always" ], "space-before-function-paren": [ 2, "always" ], "no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ], "no-cond-assign": [ 0 ] }, "env": { "es6": true, "browser": true, "mocha": true, "node": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 6, "sourceType": "module" } } rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/.gitignore000066400000000000000000000000341302405224300252260ustar00rootroot00000000000000.DS_Store node_modules dist rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/CHANGELOG.md000066400000000000000000000010351302405224300250510ustar00rootroot00000000000000# rollup-plugin-buble changelog ## 0.15.0 * Update `buble` ## 0.14.0 * Update `buble` ## 0.13.0 * Update `buble` and other deps ## 0.12.1 * Return a `name` ## 0.12.0 * Update `buble` ## 0.11.0 * Update `buble` ## 0.10.0 * Update `buble` ## 0.9.0 * Update `buble` ## 0.8.0 * Update `buble` ## 0.7.0 * Update `buble` ## 0.6.0 * Update `buble` ## 0.5.0 * Update `buble` ## 0.4.0 * Update `buble` ## 0.3.4 * Update `buble` ## 0.2.3 * Make plugin 0.12-friendly ## 0.2.2 * Update `buble` ## 0.1.0 * First release rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/README.md000066400000000000000000000004571302405224300245260ustar00rootroot00000000000000# rollup-plugin-buble Convert ES2015 with buble. ## Installation ```bash npm install --save-dev rollup-plugin-buble ``` ## Usage ```js import { rollup } from 'rollup'; import buble from 'rollup-plugin-buble'; rollup({ entry: 'main.js', plugins: [ buble() ] }).then(...) ``` ## License MIT rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/package.json000066400000000000000000000016531302405224300255340ustar00rootroot00000000000000{ "name": "rollup-plugin-buble", "description": "Compile ES2015 with buble", "version": "0.15.0", "author": "Rich Harris", "repository": "https://gitlab.com/rich-harris/rollup-plugin-buble", "license": "MIT", "main": "dist/rollup-plugin-buble.cjs.js", "jsnext:main": "dist/rollup-plugin-buble.es.js", "scripts": { "build": "npm run build:cjs && npm run build:es", "build:cjs": "rollup -c -f cjs -o dist/rollup-plugin-buble.cjs.js", "build:es": "rollup -c -f es6 -o dist/rollup-plugin-buble.es.js", "test": "mocha test/test.js", "pretest": "npm run build:cjs", "prepublish": "npm run lint && rm -rf dist && npm test && npm run build:es", "lint": "eslint src" }, "files": [ "dist", "README.md" ], "devDependencies": { "eslint": "^3.3.1", "mocha": "^3.0.2", "rollup": "^0.37.0" }, "dependencies": { "buble": "^0.15.0", "rollup-pluginutils": "^1.5.0" } } rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/rollup.config.js000066400000000000000000000000531302405224300263560ustar00rootroot00000000000000export default { entry: 'src/index.js' }; rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/src/000077500000000000000000000000001302405224300240305ustar00rootroot00000000000000rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/src/index.js000066400000000000000000000007241302405224300255000ustar00rootroot00000000000000import { transform } from 'buble'; import { createFilter } from 'rollup-pluginutils'; export default function buble ( options ) { if ( !options ) options = {}; var filter = createFilter( options.include, options.exclude ); if ( !options.transforms ) options.transforms = {}; options.transforms.modules = false; return { name: 'buble', transform: function ( code, id ) { if ( !filter( id ) ) return null; return transform( code, options ); } }; } rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/test/000077500000000000000000000000001302405224300242205ustar00rootroot00000000000000rollup-plugin-buble-v0.15.0-d37080b8885c0f047c33492505fee6d7ace147cb/test/test.js000066400000000000000000000000101302405224300255240ustar00rootroot00000000000000// TODO