Skip to content

Conversation

sstchur
Copy link

@sstchur sstchur commented May 19, 2023

While working on a project using a new bundler, we discovered that the presence of the trailing slash is breaking the bundler. Since that trailing slash isn't needed, I'm proposing removing it from all require('util') statements.

@ljharb
Copy link
Member

ljharb commented May 19, 2023

The trailing slash is absolutely needed - without the slash, it's the core module, with it, it's the util package from npm.

If that's breaking your bundler, then your bundler is broken.

@ljharb ljharb closed this May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants