UNPKG

519 BJavaScriptView Raw
1'use strict';
2
3var buble = require('buble');
4var rollupPluginutils = require('rollup-pluginutils');
5
6function buble$1 ( options ) {
7 if ( !options ) options = {};
8 var filter = rollupPluginutils.createFilter( options.include, options.exclude );
9
10 if ( !options.transforms ) options.transforms = {};
11 options.transforms.modules = false;
12
13 return {
14 name: 'buble',
15
16 transform: function ( code, id ) {
17 if ( !filter( id ) ) return null;
18 return buble.transform( code, options );
19 }
20 };
21}
22
23module.exports = buble$1;
\No newline at end of file