remove react extenals

This commit is contained in:
afc163 2017-11-21 15:49:17 +08:00
parent 08d27b92ee
commit 1e1baf01f6
2 changed files with 0 additions and 12 deletions

View File

@ -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([

View File

@ -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>