calvinmetcalf / rollup-plugin-node-builtins

138 stars 40 forks source link

Error: 'spawn' is not exported by node_modules/rollup-plugin-node-builtins/src/es6/empty.js #50

Closed kopax closed 5 years ago

kopax commented 5 years ago

I have tried to write:

 import { spawn } from 'child_process';

My configuration is :

https://github.com/rollup-umd/rollup/blob/master/src/index.js#L118

Is this:

Thanks in advance.

Version: rollup-plugin-node-builtins": "^2.1.2

calvinmetcalf commented 5 years ago

this isn't something we'd be supporting anyway since it's not somethign that works in the browser

kopax commented 5 years ago

Is it not the purpose of that plugin? It does work in nodejs and should be valid synthax. How can I do? For instance, it work with import {join} from 'path' which is node not browser.

calvinmetcalf commented 5 years ago

this is for the browser