Closed
Description
prettier uses nested binding patterns to import multiple things from "namespaces":
Code
const {
builders: {
concat,
join
},
utils: {
nub,
intercalate
}
} = require('../document')
(Identifier names have been changed to make fun of Haskell.)
Expected behavior:
nub :: Eq a => [a] -> [a]
Actual behavior:
error "Module '../document' has no exported member 'nub'.", and nub: any
.
This worked before switching const x = require
to create real aliases, and needs to work afterwards.