1

I want to reduce the size of bundlejs. But when I use precompiled reactjs, I met some problems.

    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',
    },

I got Cannot read property 'getSelection' of undefined when webpack require react/lib/ReactInputSelection.

Can anybody helps me ? Thanks.

WhatAKitty
  • 338
  • 1
  • 5
  • 17

0 Answers0