mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-05 15:39:45 +08:00
remove react extenals
This commit is contained in:
parent
08d27b92ee
commit
1e1baf01f6
@ -74,11 +74,6 @@ module.exports = {
|
||||
'create-react-class': 'preact-compat/lib/create-react-class',
|
||||
'react-router': 'react-router',
|
||||
});
|
||||
} else if (isDev) {
|
||||
config.externals = Object.assign({}, config.externals, {
|
||||
react: 'React',
|
||||
'react-dom': 'ReactDOM',
|
||||
});
|
||||
}
|
||||
|
||||
config.babel.plugins.push([
|
||||
|
@ -111,13 +111,6 @@
|
||||
<div id="react-content">
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
{% if not usePreact %}
|
||||
{% if isDev %}
|
||||
<script src="https://as.alipayobjects.com/g/component/??react/15.6.1/react.js,react/15.6.1/react-dom.js"></script>
|
||||
{% else %}
|
||||
<script src="https://as.alipayobjects.com/g/component/??react/15.6.1/react.min.js,react/15.6.1/react-dom.min.js"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<script src="{{ root }}common.js"></script>
|
||||
<script src="{{ root }}index.js"></script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user