Page MenuHomePhabricator

[web] Remove extraneous `.js` suffix at end of some imports
ClosedPublic

Authored by atul on Apr 11 2022, 2:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 4:54 PM
Unknown Object (File)
Sun, Nov 24, 2:13 PM
Unknown Object (File)
Sat, Nov 23, 11:32 PM
Unknown Object (File)
Sat, Nov 23, 11:32 PM
Unknown Object (File)
Sat, Nov 23, 9:53 PM
Unknown Object (File)
Mon, Nov 11, 6:53 AM
Unknown Object (File)
Sun, Nov 10, 12:37 AM
Unknown Object (File)
Fri, Nov 8, 10:42 PM

Details

Summary

Noticed that my editor includes the .js suffix for JS files when it "auto-imports" them.

I'll look into an ESLint thing or something, but just figured I'd cut them for now.

Test Plan

flow

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Apr 11 2022, 3:02 PM

Seems fine, although I think Node's ESM support eventually will want the .js suffix included. (That's why we have to use --experimental-specifier-resolution=node)

This revision is now accepted and ready to land.Apr 12 2022, 11:27 AM

Seems fine, although I think Node's ESM support eventually will want the .js suffix included.

Ah gotcha, guess it's not a huge deal either way for now then?

Ah gotcha, guess it's not a huge deal either way for now then?

Yeah, and I agree consistency is a good thing so this diff makes sense