webpack: (config, { isServer }) => {
// config.plugins.push(new webpack.EnvironmentPlugin(myEnv));
if (!isServer) {
Object.assign(config.resolve.alias, {
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat',
});
}
return config;
}
No comments:
Post a Comment