calvinmetcalf / rollup-plugin-node-builtins

138 stars 40 forks source link

'promisify' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/util.js #49

Open btakita opened 5 years ago

btakita commented 5 years ago
import { promisify } from 'util

results with the error:

'promisify' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/util.js

Is this related to https://github.com/calvinmetcalf/rollup-plugin-node-builtins/issues/43?

lazarljubenovic commented 4 years ago

promisify was added in v8.0.0 in Node. The current version is 13. Can we expect someone else to take over this module, since it's mentioned in the docs as the official way to bundle code that uses Node's built-ins? It's a real headache to navigate around these module-related issues, and when you finally get it, it still doesn't work because the official docs themselves recommend abandoned repositories as solutions.

thegecko commented 4 years ago

Also an issue with TextDecoder

Error: 'TextDecoder' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/util.js
willfarrell commented 4 years ago

Same wth pipeline from stream

thegecko commented 4 years ago

Just been bitten by this again. Any hints where this should be implemented in rollup so I can look into creating a PR?