Skip to content
Prev Previous commit
Next Next commit
Update lib/internal/modules/esm/get_format.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
bmeck and ljharb committed Mar 14, 2022
commit efc80ce8eb4bae95cd3b2dfd65245918a167f1ec
2 changes: 1 addition & 1 deletion lib/internal/modules/esm/get_format.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function getFileProtocolModuleFormat(url, context, ignoreErrors) {
const config = getPackageScopeConfig(url);
const fileBasename = basename(filepath);
const relativePath = StringPrototypeSlice(relative(config.pjsonPath, filepath), 1);
suggestion = 'Loading extension-less files is not supported inside of ' +
suggestion = 'Loading extensionless files is not supported inside of ' +
'"type":"module" package.json contexts. The package.json file ' +
`${config.pjsonPath} caused this "type":"module" context. Try ` +
`changing ${filepath} to have a file extension. Note the "bin" ` +
Expand Down