2021-10-08 14:07:35 +02:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-var-requires,no-undef
|
2022-01-11 09:32:17 +01:00
|
|
|
const {override, addExternalBabelPlugin, addWebpackAlias} = require("customize-cra");
|
2021-10-08 14:07:35 +02:00
|
|
|
|
|
|
|
// eslint-disable-next-line no-undef
|
|
|
|
module.exports = override(
|
2022-01-11 09:32:17 +01:00
|
|
|
addExternalBabelPlugin("@babel/plugin-proposal-nullish-coalescing-operator"),
|
|
|
|
addWebpackAlias({
|
|
|
|
"react": "preact/compat",
|
|
|
|
"react-dom/test-utils": "preact/test-utils",
|
|
|
|
"react-dom": "preact/compat", // Must be below test-utils
|
|
|
|
"react/jsx-runtime": "preact/jsx-runtime"
|
|
|
|
})
|
2021-10-08 14:07:35 +02:00
|
|
|
);
|