Fix deprecation notice from rollup-plugin-replace

This commit is contained in:
Jocelyn Badgley (Twipped) 2021-03-23 09:45:40 -07:00
parent 0cee442b92
commit 74b9de01ab

View File

@ -10,7 +10,12 @@ const svg = require('rollup-plugin-react-svg');
const { terser } = require('rollup-plugin-terser');
const plugins = [
replace({ 'process.env.NODE_ENV': '"production"' }),
replace({
preventAssignment: true,
values: {
'process.env.NODE_ENV': '"production"',
},
}),
alias({
entries: [
{ find: 'react', replacement: 'preact/compat' },