Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

rollup-plugin-es3

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-es3

Make rollup compatible with ES3, remove Object.defineProperty of __esModule part

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
38K
4.84%
Maintainers
1
Weekly downloads
 
Created
Source

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'] })
	]

Keywords

rollup

FAQs

Package last updated on 09 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts