diff --git a/site/bisheng.config.js b/site/bisheng.config.js index 9fef7cba94..294bc6bf3b 100644 --- a/site/bisheng.config.js +++ b/site/bisheng.config.js @@ -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([ diff --git a/site/theme/static/template.html b/site/theme/static/template.html index db2815ce02..6202ddafd2 100644 --- a/site/theme/static/template.html +++ b/site/theme/static/template.html @@ -111,13 +111,6 @@
{{ content | safe }}
- {% if not usePreact %} - {% if isDev %} - - {% else %} - - {% endif %} - {% endif %}