No need to use rollup commonjs plugin (#7122)

This commit is contained in:
Ben McCann 2020-02-19 17:51:01 -08:00 committed by GitHub
parent 4a737729d5
commit 28e03946a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
/* eslint-disable import/no-commonjs */
/* eslint-env es6 */
const commonjs = require('rollup-plugin-commonjs');
const resolve = require('rollup-plugin-node-resolve');
const babel = require('rollup-plugin-babel');
const cleanup = require('rollup-plugin-cleanup');
@ -26,7 +25,6 @@ module.exports = [
input,
plugins: [
resolve(),
commonjs(),
babel(),
optional({
include: ['moment']
@ -53,7 +51,6 @@ module.exports = [
input,
plugins: [
resolve(),
commonjs(),
babel(),
optional({
include: ['moment']
@ -85,7 +82,6 @@ module.exports = [
input,
plugins: [
resolve(),
commonjs(),
babel(),
cleanup({
sourcemap: true
@ -109,7 +105,6 @@ module.exports = [
input,
plugins: [
resolve(),
commonjs(),
babel(),
terser({
output: {