I want to migrate from requirejs to webpack and in requirejs config I have:
paths: {
'jquery.ui.core': 'lib/jquery.ui/jquery.ui.core-1.11.4',
'jquery.ui.draggable': 'lib/jquery.ui/jquery.ui.draggable-1.11.4',
'jquery.ui.mouse': 'lib/jquery.ui/jquery.ui.mouse-1.11.4',
'jquery.ui.widget': 'lib/jquery.ui/jquery.ui.widget-1.11.4',
...
shim: {
'jquery.ui.mouse': ['jquery.ui.core', 'jquery.ui.widget'],
....
jquery.ui.core
and jquery.ui.widget
are dependencies of jquery.ui.mouse
. How to make webpack load this modules as dependencies of jquery.ui.mouse
?
What webpack's alternative of dependencies in shim
config property ?