16 lines
321 B
JavaScript
16 lines
321 B
JavaScript
|
module.exports = {
|
||
|
eslint: {
|
||
|
ignoreDuringBuilds: true,
|
||
|
},
|
||
|
webpack(config, { dev }) {
|
||
|
if (!dev) {
|
||
|
Object.assign(config.resolve.alias, {
|
||
|
react: "preact/compat",
|
||
|
"react-dom": "preact/compat",
|
||
|
"react-dom/test-utils": "preact/test-utils",
|
||
|
});
|
||
|
}
|
||
|
return config;
|
||
|
},
|
||
|
};
|