1. rollup-plugin-es3
Make rollup compatible with ES3, remove Object.defineProperty of __esModule part
rollup-plugin-es3
Package: rollup-plugin-es3
Created by: futurist
Last modified: Sun, 26 Jun 2022 13:58:43 GMT
Version: 1.1.0
License: MIT
Downloads: 90,257
Repository: https://github.com/futurist/rollup-plugin-es3

Install

npm install rollup-plugin-es3
yarn add rollup-plugin-es3

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin