From 6bcbd9dd265ef6f1c83825c24983f2e9f3c17d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ka=CC=88gy?= Date: Tue, 10 May 2022 09:22:59 +0200 Subject: [PATCH] fix spelling mistakes --- packages/toolkit/config/webpack.config.js | 4 ++-- packages/toolkit/config/webpack/index.js | 4 ++-- packages/toolkit/config/webpack/optimization.js | 2 +- .../toolkit/config/webpack/{perfomance.js => performance.js} | 4 ++-- packages/toolkit/config/webpack/plugins.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename packages/toolkit/config/webpack/{perfomance.js => performance.js} (83%) diff --git a/packages/toolkit/config/webpack.config.js b/packages/toolkit/config/webpack.config.js index 36399b3d..8965741e 100644 --- a/packages/toolkit/config/webpack.config.js +++ b/packages/toolkit/config/webpack.config.js @@ -17,7 +17,7 @@ const { getModules, getResolve, getTarget, - getPerfomance, + getPerformance, getDevServer, } = require('./webpack'); @@ -59,7 +59,7 @@ module.exports = { target: getTarget(config), resolve: getResolve(config), externals: getExternals(config), - performance: getPerfomance(config), + performance: getPerformance(config), module: getModules(config), plugins: getPlugins(config), stats: getStats(config), diff --git a/packages/toolkit/config/webpack/index.js b/packages/toolkit/config/webpack/index.js index e15eda13..9af781d7 100644 --- a/packages/toolkit/config/webpack/index.js +++ b/packages/toolkit/config/webpack/index.js @@ -7,7 +7,7 @@ const getOptimization = require('./optimization'); const getModules = require('./modules'); const getResolve = require('./resolve'); const getTarget = require('./target'); -const getPerfomance = require('./perfomance'); +const getPerformance = require('./performance'); const getDevServer = require('./devServer'); module.exports = { @@ -20,6 +20,6 @@ module.exports = { getModules, getResolve, getTarget, - getPerfomance, + getPerformance, getDevServer, }; diff --git a/packages/toolkit/config/webpack/optimization.js b/packages/toolkit/config/webpack/optimization.js index b947e1d7..59627f90 100644 --- a/packages/toolkit/config/webpack/optimization.js +++ b/packages/toolkit/config/webpack/optimization.js @@ -14,7 +14,7 @@ module.exports = ({ isProduction, projectConfig: { hot, analyze } }) => { terserOptions: { parse: { // We want terser to parse ecma 8 code. However, we don't want it - // to apply any minfication steps that turns valid ecma 5 code + // to apply any minification steps that turns valid ecma 5 code // into invalid ecma 5 code. This is why the 'compress' and 'output' // sections only apply transformations that are ecma 5 safe // https://github.com/facebook/create-react-app/pull/4234 diff --git a/packages/toolkit/config/webpack/perfomance.js b/packages/toolkit/config/webpack/performance.js similarity index 83% rename from packages/toolkit/config/webpack/perfomance.js rename to packages/toolkit/config/webpack/performance.js index 9342e0d4..e1df8a6b 100644 --- a/packages/toolkit/config/webpack/perfomance.js +++ b/packages/toolkit/config/webpack/performance.js @@ -1,9 +1,9 @@ /** - * Converts a size vlaue to bytes + * Converts a size value to bytes * * @param {number} size The size in kb * - * @return {number} The size in bytes + * @returns {number} The size in bytes */ const kb = (size) => { return size * 1024; diff --git a/packages/toolkit/config/webpack/plugins.js b/packages/toolkit/config/webpack/plugins.js index 9513d7a7..3715f896 100644 --- a/packages/toolkit/config/webpack/plugins.js +++ b/packages/toolkit/config/webpack/plugins.js @@ -129,7 +129,7 @@ module.exports = ({ }), // Fancy WebpackBar. !hasReactFastRefresh && new WebpackBar(), - // dependecyExternals variable controls whether scripts' assets get + // dependencyExternals variable controls whether scripts' assets get // generated, and the default externals set. wpDependencyExternals && !isPackage &&