rollup-plugin-es3
Make rollup compatible with ES3, remove Object.defineProperty of __esModule part
Last updated 8 years ago by mithriljs_cn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rollup-plugin-es3 
SYNC missed versions from official npm registry.

rollup-plugin-es3

Build Status

Rollup plugin, to make it more compatible with ES3.

Currently it's only do 2 things:

  • Remove Object.defineProperty of __esModule part (rollup issue #750)
  • Remove Object.freeze (issue #1)

Install

npm i rollup-plugin-es3 -D

Usage

import { rollup } from 'rollup'
import es3 from 'rollup-plugin-es3'

rollup({
	entry: 'main.js',
	plugins: [
		es3()
	]
})

Option

// pass the list of removal
	plugins: [
		es3({ remove: ['defineProperty', 'freeze'] })
	]

Current Tags

  • 1.1.0                                ...           latest (8 years ago)

5 Versions

  • 1.1.0                                ...           8 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 4
Last Month 5
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |