You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I was looking for a canonical issue, but apparently don't really have one...)
This is expected behavior. export = Licenses does not create an export named Licenses, export class Licenses would, or export { Licenses } would. export = creates a module whose export is the value.
If I read docs for a modern library and see that Licenses is exported, then I expect to do import { Licenses } from "github-licenses".
I provided an example plugin for renaming default exports, I suspect something very similar could be done here.
Sidenote: Why is this a class? It's all static methods... Why not just export a bunch of functions using ES module exports?
Search terms
export, export=
Expected Behavior
The class would be correctly named (In this case,
Licenses
)Actual Behavior
The class is called
export=
Steps to reproduce the bug
https://github.com/bwbjustin/bwbjustin.github.io
https://github.com/bwbjustin/github-licenses
Environment
The text was updated successfully, but these errors were encountered: