We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a2a41 commit 9cfbab0Copy full SHA for 9cfbab0
rollup.config.js
@@ -181,7 +181,9 @@ function createReplacePlugin(
181
...(isProduction && isBrowserBuild
182
? {
183
'context.onError(': `/*#__PURE__*/ context.onError(`,
184
- 'emitError(': `/*#__PURE__*/ emitError(`
+ 'emitError(': `/*#__PURE__*/ emitError(`,
185
+ 'createCompilerError(': `/*#__PURE__*/ createCompilerError(`,
186
+ 'createDOMCompilerError(': `/*#__PURE__*/ createDOMCompilerError(`
187
}
188
: {})
189
@@ -212,7 +214,11 @@ function createMinifiedConfig(format) {
212
214
},
213
215
[
216
terser({
- module: /^esm/.test(format)
217
+ module: /^esm/.test(format),
218
+ compress: {
219
+ ecma: 2015,
220
+ pure_getters: true
221
+ }
222
})
223
]
224
)
0 commit comments