JSPM

ascjsify

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17144F
  • License Apache-2.0

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

Package Exports

  • ascjsify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ascjsify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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