mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +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',
|
'create-react-class': 'preact-compat/lib/create-react-class',
|
||||||
'react-router': 'react-router',
|
'react-router': 'react-router',
|
||||||
});
|
});
|
||||||
} else if (isDev) {
|
|
||||||
config.externals = Object.assign({}, config.externals, {
|
|
||||||
react: 'React',
|
|
||||||
'react-dom': 'ReactDOM',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
config.babel.plugins.push([
|
config.babel.plugins.push([
|
||||||
|
@ -111,13 +111,6 @@
|
|||||||
<div id="react-content">
|
<div id="react-content">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
</div>
|
</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 }}common.js"></script>
|
||||||
<script src="{{ root }}index.js"></script>
|
<script src="{{ root }}index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
Reference in New Issue
Block a user