1

我想减小 bundlejs 的大小。但是当我使用预编译的 reactjs 时,我遇到了一些问题。

    externals: {
        'jquery': 'jQuery',
        'jquery-ui': 'jQueryUI',
        'react': 'React',
        'react/addons': 'React.addons',
        'react/lib/ReactMount': 'React.addons.ReactMount',
        'react/lib/ReactInputSelection': 'React.addons.ReactInputSelection',
        'react/lib/LinkedStateMixin': 'React.addons.LinkedStateMixin',
        'react-dom': 'ReactDOM',
        'react-router': 'ReactRouter',
        'history/lib': 'History',
        'history': 'History',
    },

Cannot read property 'getSelection' of undefined当 webpack 需要 react/lib/ReactInputSelection 时我得到了 。

任何人都可以帮助我吗?谢谢。

4

0 回答 0