$ node --enable-source-maps --import @swc-node/register/esm-register ./scripts/foo.ts
./scripts/foo.ts:
// import and use any package with a peer dependency to boolbase
node_modules/css-select/lib/esm/attributes.js:1
import boolbase from "boolbase";
^^^^^^^^
SyntaxError: The requested module 'boolbase' does not provide an export named 'default'
Well, this is an error you can hardly recover from. You cannot use any library anymore that has a peer dependency down the road that is somewhere using boolbase.
node -v
v20.11.1
packages used:
"@swc/core": "^1.4.17",
"@swc-node/register": "^1.8.0",