Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7230a3d

Browse files
2 parents 6526e06 + b6330a8 commit 7230a3d

File tree

4 files changed

+14
-19
lines changed

4 files changed

+14
-19
lines changed

‎packages/babel-plugin-named-asset-import/index.js‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ function namedAssetImportPlugin({ types: t }) {
3535

3636
return {
3737
visitor: {
38-
ExportNamedDeclaration(
39-
path,
40-
{
41-
opts: { loaderMap },
42-
}
43-
) {
38+
ExportNamedDeclaration(path, { opts: { loaderMap } }) {
4439
if (!path.node.source) {
4540
return;
4641
}
@@ -67,12 +62,7 @@ function namedAssetImportPlugin({ types: t }) {
6762
);
6863
});
6964
},
70-
ImportDeclaration(
71-
path,
72-
{
73-
opts: { loaderMap },
74-
}
75-
) {
65+
ImportDeclaration(path, { opts: { loaderMap } }) {
7666
replaceMatchingSpecifiers(path, loaderMap, (specifier, sourcePath) => {
7767
if (t.isImportDefaultSpecifier(specifier)) {
7868
return t.importDeclaration(

‎packages/cra-template/template/src/serviceWorker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function registerValidSW(swUrl, config) {
101101
function checkValidServiceWorker(swUrl, config) {
102102
// Check if the service worker can be found. If it can't reload the page.
103103
fetch(swUrl, {
104-
headers: { 'Service-Worker': 'script' }
104+
headers: { 'Service-Worker': 'script' },
105105
})
106106
.then(response => {
107107
// Ensure service worker exists, and that we really are getting a JS file.

‎packages/react-scripts/config/webpack.config.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ module.exports = function(webpackEnv) {
6868
const isEnvDevelopment = webpackEnv === 'development';
6969
const isEnvProduction = webpackEnv === 'production';
7070

71+
// Variable used for enabling profiling in Production
72+
// passed into alias object. Uses a flag if passed into the build command
73+
const isEnvProductionProfile =
74+
isEnvProduction && process.argv.includes('--profile');
75+
7176
const workspacesMainFields = [
7277
workspacesConfig.packageEntry,
7378
'browser',
@@ -89,11 +94,6 @@ module.exports = function(webpackEnv) {
8994
? [paths.appSrc, ...workspacesConfig.paths]
9095
: paths.appSrc;
9196

92-
// Variable used for enabling profiling in Production
93-
// passed into alias object. Uses a flag if passed into the build command
94-
const isEnvProductionProfile =
95-
isEnvProduction && process.argv.includes('--profile');
96-
9797
// We will provide `paths.publicUrlOrPath` to our app
9898
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
9999
// Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.

‎packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ArrayDestructuring.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import React, { Component } from 'react';
99
import PropTypes from 'prop-types';
1010

1111
function load() {
12-
return [[1, '1'], [2, '2'], [3, '3'], [4, '4']];
12+
return [
13+
[1, '1'],
14+
[2, '2'],
15+
[3, '3'],
16+
[4, '4'],
17+
];
1318
}
1419

1520
export default class extends Component {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /