pinafore/webpack/terser.config.js
Nolan Lawson 16e66346d7
fix!: remove esm package, use native Node ES modules (#2064)
BREAKING CHANGE: Node v12.20+, v14.14+, or v16.0+ is required

* fix!: remove esm package, use native Node ES modules

* fix: fix some CJS imports
2021-07-04 20:19:04 -07:00

9 lines
298 B
JavaScript

import TerserWebpackPlugin from 'terser-webpack-plugin'
import terserOptions from '../bin/terserOptions'
export default () => new TerserWebpackPlugin({
exclude: /(tesseract-asset|page-lifecycle)/, // tesseract causes problems, page-lifecycle is pre-minified
parallel: true,
terserOptions
})