I think that I have most of my third-party libraries working without using script-loader , but none of the legacy scripts will work. They are all written like this:
var i_am_totally_global = 6;
function i_expect_to_just_run_in_the_browser() {}
So the only option I can think of is to simply run them in a global / window context. However, if I try to create a “record” script with something like this,
require('script!./AjaxList');
require('script!./MozCompatibility');
require('script!./DynamicSelect');
require('script!./DynamicSelect2');
require('script!./prototype');
...
Then ProvidePluginit won’t work for them, which means that they can’t access my supplier libraries, unless I don’t script!, but then I’ll go back to the square - everything is global and webpack does nothing for me.
export , , + var?
legacy-loader, , , , . , , , (window.abc = xyz), (abc = xyz). , , script var abc = xyz function abc() {}, , , , JavaScript.
AFAIK - JavaScript. , Webpack JS, , , .