ascjsify
fast browserify transform for ES modules, and nothing else--using @WebReflection `ascjs`
Last updated 3 years ago by goto-bus-stop .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ascjsify 
SYNC missed versions from official npm registry.

ascjsify

fast browserify transform for ES modules, and nothing else--using @WebReflection ascjs

npm travis standard

Install

npm install ascjsify

Usage

browserify app.js -t ascjsify
browserify app.js -g ascjsify # global
var ascjsify = require('ascjsify')
var b = browserify()
b.transform(ascjsify, { global: true })

global: true is optional, but useful if dependencies may be using ES modules already. ascjsify only runs on files that look like they may contain import or export statements, so it won't slow everything down when run globally.

Input

import { EventEmitter } from 'events'
export default new EventEmitter()

Output

const { EventEmitter } = require('events')
Object.defineProperty(exports, '__esModule', {value: true}).default = new EventEmitter()

License

Apache-2.0

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |