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)
Mon, Nov 11, 6:53 AM
Unknown Object (File)
Sun, Nov 10, 12:37 AM
Unknown Object (File)
Fri, Nov 8, 10:42 PM
Unknown Object (File)
Fri, Nov 8, 10:42 PM
Unknown Object (File)
Fri, Nov 8, 10:42 PM
Unknown Object (File)
Fri, Nov 8, 8:20 PM
Unknown Object (File)
Fri, Nov 8, 8:20 PM
Unknown Object (File)
Fri, Nov 8, 8:20 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
Branch
landapril12 (branched from master)
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