зеркало из https://github.com/mozilla/treeherder.git
Bug 1456894 - Import React explicitly
Rather than relying on `ProvidePlugin`.
This commit is contained in:
Родитель
cc64c07802
Коммит
f522727087
|
@ -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';
|
||||
|
|
Загрузка…
Ссылка в новой задаче