All Projects → garthenweb → bubleify

garthenweb / bubleify

Licence: MIT license
Browserify transform that compiles es2015 to es5 using Bublé

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to bubleify

Common Shakeify
browserify tree shaking plugin using `common-shake`
Stars: ✭ 101 (+380.95%)
Mutual labels:  browserify
Magnet Uri
Parse a magnet URI and return an object of keys/values
Stars: ✭ 183 (+771.43%)
Mutual labels:  browserify
cacheify
Browserify transform wrapper that caches the transforms between runs to improve performance
Stars: ✭ 30 (+42.86%)
Mutual labels:  browserify
Jus
🍉 An opinionated tool for making static websites with browserify
Stars: ✭ 107 (+409.52%)
Mutual labels:  browserify
Cssify
Simple middleware for Browserify to add css styles to the browser.
Stars: ✭ 127 (+504.76%)
Mutual labels:  browserify
Modular Css
A streamlined reinterpretation of CSS Modules via CLI, API, Browserify, Rollup, Webpack, or PostCSS
Stars: ✭ 234 (+1014.29%)
Mutual labels:  browserify
Npm Pipeline Rails
Use npm as part of your Rails asset pipeline
Stars: ✭ 93 (+342.86%)
Mutual labels:  browserify
browserify-bower
A browserify plugin, to enable you use bower components just like node modules
Stars: ✭ 20 (-4.76%)
Mutual labels:  browserify
Render Media
Intelligently render media files in the browser
Stars: ✭ 181 (+761.9%)
Mutual labels:  browserify
globify
Run browserify and watchify with globs - even on Windows!
Stars: ✭ 16 (-23.81%)
Mutual labels:  browserify
Babel Plugin Prismjs
A babel plugin to use PrismJS with standard bundlers.
Stars: ✭ 114 (+442.86%)
Mutual labels:  browserify
Serverless Plugin Optimize
Bundle with Browserify, transpile and minify with Babel automatically to your NodeJS runtime compatible JavaScript
Stars: ✭ 122 (+480.95%)
Mutual labels:  browserify
Sha.js
Streamable SHA hashes in pure javascript
Stars: ✭ 237 (+1028.57%)
Mutual labels:  browserify
Frontbook
📖 FrontBook is a small and modern frontend boilerplate, enabling you to write ES201* today in production-ready projects.
Stars: ✭ 102 (+385.71%)
Mutual labels:  browserify
ts-react-boilerplate
A very opinionated (React/TypeScript/Redux/etc) frontend boilerplate
Stars: ✭ 43 (+104.76%)
Mutual labels:  browserify
React Tsx Starter
Universal/Isomorphic React TypeScript Starter Project
Stars: ✭ 97 (+361.9%)
Mutual labels:  browserify
Minipack
📦 A simplified example of a modern module bundler written in JavaScript
Stars: ✭ 2,625 (+12400%)
Mutual labels:  browserify
browserify-aes
aes, for browserify
Stars: ✭ 56 (+166.67%)
Mutual labels:  browserify
sentiment-analysis
🎈 A Node.js AFINN-111 based sentiment analysis module
Stars: ✭ 26 (+23.81%)
Mutual labels:  browserify
Routr
A component that provides router related functionalities for both client and server.
Stars: ✭ 241 (+1047.62%)
Mutual labels:  browserify

Bubléify build status Coverage Status

A browserify transform for Bublé to transform ES2015 to ES5.

Installation

npm install --save-dev bubleify

Usage

Node

const browserify = require('browserify');
const bubleify = require('bubleify');

const b = browserify();
b.add('./file.es2015.js'));
b.transform(bubleify, {
  target: {
    chrome: 48,
    firefox: 44,
  },
  transforms: {
    arrow: true,
    defaultParameter: false,
    dangerousForOf: true,
  },
});
b.bundle();

CLI

browserify script.js -o bundle.js -t [ bubleify ]

Options

target: Object

Target specifies a list of environments the output file should be compatible to. Bublè will decide based on this list which transforms should be used.

transforms: Object

Transforms define which ES2015 features should or should not be transformed into ES5.

Bublèify by default disables the module transform to not throw an error when ES2015 import and export statements are used. If you want to use ES2015 modules you should add another transform to do so.

Find a list of all transforms on the Bublè documentation in section list of transforms. For more detailed information about each transform also see supported features and dangerous transforms.

sourceMap: Boolean

Define whether an inline source map should or should not be created by Bublé.

Default is true.

Please note that browserify will not output any source map if debug mode is false, even if sourceMap was set to true.

extensions: Array

The allowed file extensions that should be transformed with Bublé. Files included into the stream that do not match an extension will be ignored by Bubléify.

Default is ['.js', '.jsx', '.es', '.es6'].

bubleError: Boolean

Define whether the error generated by Bublè or a the Bublè error message as a string should be emitted in case of an error.

Default is false.

Bublè may in some situations throw a custom error. Browserify will, when used on the command line, just output the call stack in this situation but does not show the error message. Turning this option on will display the error message but suppresses the call stack.

Credits

Thanks goes to Rich Harris for the Bublè package.

License

Licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].