Bug 1456894 - Import React explicitly

Rather than relying on `ProvidePlugin`.
This commit is contained in:
Ed Morley 2018-04-21 18:28:12 +01:00
Родитель cc64c07802
Коммит f522727087
16 изменённых файлов: 14 добавлений и 4 удалений

Просмотреть файл

@ -277,7 +277,6 @@ module.exports = neutrino => {
jQuery: require.resolve('jquery'),
'window.$': require.resolve('jquery'),
'window.jQuery': require.resolve('jquery'),
React: require.resolve('react'),
});
neutrino.config.devtool('source-map');

Просмотреть файл

@ -62,7 +62,6 @@ module.exports = neutrino => {
globals: [
'$',
'jQuery',
'React',
'SERVICE_DOMAIN',
]
}

Просмотреть файл

@ -1,7 +1,6 @@
// Karma/webpack entry for tests
import jQuery from 'jquery';
import React from 'react';
// Manually import angular since angular-mocks doesn't do so itself
import 'angular';
import 'angular-mocks';
@ -13,7 +12,6 @@ import Adapter from 'enzyme-adapter-react-16';
// because neutrino removes plugin definitions for karma runs
window.$ = jQuery;
window.jQuery = jQuery;
window.React = React;
configure({ adapter: new Adapter() });

Просмотреть файл

@ -1,4 +1,6 @@
import React from 'react';
import { mount } from 'enzyme';
import { Revision, Initials } from '../../../../ui/job-view/Revision';
import {
RevisionList,

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { react2angular } from 'react2angular/index.es2015';

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { react2angular } from 'react2angular/index.es2015';
import Highlighter from 'react-highlight-words';

Просмотреть файл

@ -1,4 +1,5 @@
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { react2angular } from 'react2angular/index.es2015';

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
export default class AutoclassifyToolbar extends React.Component {

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup } from 'reactstrap';

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, Label, Input } from 'reactstrap';
import Select from 'react-select';

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import Highlighter from 'react-highlight-words';

Просмотреть файл

@ -1,4 +1,5 @@
import _ from 'lodash';
import React from 'react';
export const stringOverlap = function (str1, str2) {
// Get a measure of the similarity of two strings by a simple process

Просмотреть файл

@ -1,4 +1,5 @@
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import JobButton from './JobButton';

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { getAllUrlParams } from '../helpers/locationHelper';

Просмотреть файл

@ -1,4 +1,5 @@
import _ from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import { parseAuthor } from '../helpers/revisionHelper';

Просмотреть файл

@ -1,3 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Revision } from './Revision';