# rollup-plugin-es3

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

Latest version **1.1.0** (published 2017-12-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-es3
pnpm add rollup-plugin-es3
yarn add rollup-plugin-es3
bun add rollup-plugin-es3
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-12-09 |
| First published | 2016-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | James Yang |
| Maintainers | mithriljs_cn |
| Keywords | rollup, rollup-plugin, esModule, Object.defineProperty |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-es3
- Repository: https://github.com/futurist/rollup-plugin-es3
- Homepage: https://github.com/futurist/rollup-plugin-es3#readme
- Issues: https://github.com/futurist/rollup-plugin-es3/issues
- npm.io page: https://npm.io/package/rollup-plugin-es3

## Dependencies (1)

- [magic-string](https://npm.io/package/magic-string.md) ^0.22.4

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-12-09
- 1.0.3 — 2016-08-26
- 1.0.2 — 2016-08-19
- 1.0.1 — 2016-08-18
- 1.0.0 — 2016-08-18

## README

# rollup-plugin-es3

[![Build Status](https://travis-ci.org/futurist/rollup-plugin-es3.svg?branch=master)](https://travis-ci.org/futurist/rollup-plugin-es3)

[Rollup](https://github.com/rollup/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](https://github.com/rollup/rollup/issues/750))
- Remove Object.freeze (issue #1)

## Install

```sh
npm i rollup-plugin-es3 -D
```

## Usage

```js
import { rollup } from 'rollup'
import es3 from 'rollup-plugin-es3'

rollup({
	entry: 'main.js',
	plugins: [
		es3()
	]
})
```

## Option

``` javascript
// pass the list of removal
	plugins: [
		es3({ remove: ['defineProperty', 'freeze'] })
	]
```

---
_Source: https://npm.io/package/rollup-plugin-es3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
