File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import BuiltinModule from 'module';
33import path from 'path' ;
44
55const nodeModulesRegex = / ^ (?: .* [ \\ / ] ) ? n o d e _ m o d u l e s (?: [ \\ / ] .* ) ? $ / ;
6- // Guard against poorly mocked module constructors.
6+ // Guard against poorly- mocked module constructors.
77const Module =
88 module . constructor . length > 1 ? module . constructor : BuiltinModule ;
99
@@ -12,7 +12,7 @@ const HOOK_RETURNED_NOTHING_ERROR_MESSAGE =
1212 ' violation of intergalactic law!\n' +
1313 '--------------------\n' +
1414 'If you have no idea what this means or what Pirates is, let me explain: ' +
15- 'Pirates is a module that makes is easy to implement require hooks. One of' +
15+ 'Pirates is a module that makes it easy to implement require hooks. One of' +
1616 " the require hooks you're using uses it. One of these require hooks" +
1717 " didn't return anything from it's handler, so we don't know what to" +
1818 ' do. You might want to debug this.' ;
@@ -138,7 +138,7 @@ export function addHook(hook, opts = {}) {
138138
139139 exts . forEach ( ( ext ) => {
140140 // if the current loader for the extension is our loader then unregister it and set the oldLoader again
141- // if not we can not do anything as we cannot remove a loader from within the loader-chain
141+ // if not we cannot do anything as we cannot remove a loader from within the loader-chain
142142 if ( Module . _extensions [ ext ] === loaders [ ext ] ) {
143143 if ( ! oldLoaders [ ext ] ) {
144144 delete Module . _extensions [ ext ] ;
You can’t perform that action at this time.
0 commit comments