Fuse-box: Importing modules which contain "process" fails

Created on 24 Feb 2017  路  2Comments  路  Source: fuse-box/fuse-box

I tried to import: https://github.com/postcss/postcss-js into my code but was always failing at this line:

const cssObj = postcssJs.objectify(root);

Upon further inspection of the postcss-js code I realized that fusebox was inadvertently replacing every occurrence of _any_ variable named process in legitimate code: https://github.com/postcss/postcss-js/blob/master/objectifier.js making it impossible for me to use the function.

If I console.log(postcssJs) this is what I get (you can see that the objectify key points to Node's process instead of the module's function):

actual

Is there an option to skip shimming of certain modules?

bug

Most helpful comment

hi @shripadk
thanks for submitting the issue! We will fix that as soon possible.

All 2 comments

hi @shripadk
thanks for submitting the issue! We will fix that as soon possible.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charles-mathieus-jomedia picture charles-mathieus-jomedia  路  4Comments

danielearwicker picture danielearwicker  路  3Comments

dlacaille picture dlacaille  路  3Comments

thepatrick picture thepatrick  路  5Comments

dzek69 picture dzek69  路  3Comments