You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My proposal to make mapping to final webpack config like:
if(config.fallback){constpolyfills: string[]=[];for(constfallbackofconfig.fallback){constpolyfill=config.fallback[fallback];// We also could check that it is builtin node module polyfillif(typeofpolyfill==='string'){polyfills.push(polyfill);}}if(polyfills.length){config.plugins.push(newwebpack.NormalModuleReplacementPlugin(/node:/,(resource)=>{constmod=resource.request.replace(/^node:/,"");if(polyfills.includes(mod)){resource.request=config.polyfills[mod];}else{thrownewError(`Not found ${mod}`);}}));}}
The text was updated successfully, but these errors were encountered:
In order to polyfill
node:path
for example we need to useNormalModuleReplacementPlugin
(webpack/webpack#13290 (comment))I think that would be nice for app-builder to map
config.fallback
, and include polyfills from hereFor example we have
My proposal to make mapping to final webpack config like:
The text was updated successfully, but these errors were encountered: