Skip to content

Commit

Permalink
fix spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed May 10, 2022
1 parent 2c1ba87 commit 6bcbd9d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/toolkit/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const {
getModules,
getResolve,
getTarget,
getPerfomance,
getPerformance,
getDevServer,
} = require('./webpack');

Expand Down Expand Up @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions packages/toolkit/config/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -20,6 +20,6 @@ module.exports = {
getModules,
getResolve,
getTarget,
getPerfomance,
getPerformance,
getDevServer,
};
2 changes: 1 addition & 1 deletion packages/toolkit/config/webpack/optimization.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/config/webpack/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 6bcbd9d

Please sign in to comment.