Tooling concepts
Package entry points and exports boundaries
A package can expose an intentional public entry point instead of asking consumers to import arbitrary internal files. Node package exports controls supported package-specifier subpaths. Do not use package internals merely because a file exists in node_modules. Use the supported public entry point. Example type: javascript. Context: npm-lab. Expected observation: 8. See local fixture evidence.
Formal Syntax & Structure
javascript syntaxjavascript
import { double } from "@lesson/units";console.log(double(4));Working Example
Example Snippetjavascript
import { double } from "@lesson/units";console.log(double(4));