mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
use development react in dev
This commit is contained in:
parent
5e7c735935
commit
f02cd9cd52
@ -74,7 +74,7 @@ module.exports = {
|
||||
'create-react-class': 'preact-compat/lib/create-react-class',
|
||||
'react-router': 'react-router',
|
||||
});
|
||||
} else if (isDev) {
|
||||
} else if (!isDev) {
|
||||
config.externals = Object.assign({}, config.externals, {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
|
@ -112,7 +112,7 @@
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
{% if not usePreact %}
|
||||
{% if isDev %}
|
||||
{% if not isDev %}
|
||||
<script src="https://gw.alipayobjects.com/as/g/component/react/16.0.0/react.production.min.js"></script>
|
||||
<script src="https://gw.alipayobjects.com/as/g/component/react/16.0.0/react-dom.production.min.js"></script>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user