devolution icon indicating copy to clipboard operation
devolution copied to clipboard

In order to use `addPolyfills` define `rootBundles` condition

Open mRicooo opened this issue 6 years ago • 3 comments

Hello,

When I run the command 'yarn run devolution dist es5", I get this error Error: devolution: in order to useaddPolyfillsdefinerootBundles condition.

I don't really know what to put inside 'rootBundles',

Thank you

mRicooo avatar Jan 06 '20 15:01 mRicooo

Look like there is a bug with addPolyfills, you should use it to get this error...

define rootBundles condition.

see rootBundles property in your .devolution.rc. It defines regexp to find the "main" bundle, devolution could add some polyfills to if needed.

theKashey avatar Jan 06 '20 20:01 theKashey

i got same misunderstood on this message, then i checked source and it make clear for me. Maybe better change this message?

vladislavmega avatar Jan 13 '20 16:01 vladislavmega

Any proposals? The actual problem is the default configuration, which has addPolyfills configured, but rootBundles left empty. #8 should provide that configuration out of the box.

theKashey avatar Jan 13 '20 20:01 theKashey