Differences in demand vs require. To split code in webpack 2

For Webpack 2 , does it require()do anything different than require.ensure()for code conditioning?

I have a project that has been converted from the database requirejs, and require()is still working and apparently crashing my application accordingly. Is there a reason I should switch to require.ensure()instead?

+4
source share

Source: https://habr.com/ru/post/1677491/


All Articles