In node, the following js does not result in any errors:
obj = {};
obj.const = {};
obj = {};
obj.function = {};
However, in App Script it does. Line 2 in both examples would generate error "Missing name after . operator" in apps script online editor. Nor is this detected in any linters. Unexpected consequence is that we get "Bad Error" when attempting to upload.
Documenting for reference; the problem really isn't with this package. Hopefully documenting here may save hours of head-scratching.