mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 07:56:28 +08:00
site: update config syntax
This commit is contained in:
parent
c419a1ddef
commit
e8f61f11ef
@ -68,19 +68,17 @@ module.exports = {
|
||||
};
|
||||
|
||||
if (usePreact) {
|
||||
config.resolve.alias = {
|
||||
...config.resolve.alias,
|
||||
config.resolve.alias = Object.assign({}, config.resolve.alias, {
|
||||
react: 'preact-compat',
|
||||
'react-dom': 'preact-compat',
|
||||
'create-react-class': 'preact-compat/lib/create-react-class',
|
||||
'react-router': 'react-router',
|
||||
};
|
||||
});
|
||||
} else {
|
||||
config.externals = {
|
||||
...config.externals,
|
||||
config.externals = Object.assign({}, config.externals, {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
config.babel.plugins.push([
|
||||
|
Loading…
Reference in New Issue
Block a user