Skip to content

Instantly share code, notes, and snippets.

@lemanschik
Created December 6, 2024 07:15
Show Gist options
  • Save lemanschik/4b461bd35981058daeceac644a9c9137 to your computer and use it in GitHub Desktop.
Save lemanschik/4b461bd35981058daeceac644a9c9137 to your computer and use it in GitHub Desktop.
NodeJS Packaging export default special case

A Special case in node

export other
export default class me {}

Disables syntactic default import so translates to

// import * as me from 'above.js'
import me from 'above.js'
me.other,me.default

solution if it has a default

import { default as SysTray } from 'systray';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment