Skip to content

Commit

Permalink
Support all modules in ESM babel preset
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed Mar 26, 2022
1 parent d91978e commit b13d7ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = (originalPath, filePath) => {
return './fake-prop-types.js';
}

if (originalPath.indexOf('diffhtml') !== 0) {
if (originalPath[0] === '.' || originalPath[0] === '/') {
// Ensure this path has a trailing extension.
if (!extname(originalPath)) {
originalPath += '.js';
Expand Down

0 comments on commit b13d7ac

Please sign in to comment.