Releases: agoldis/webpack-require-from
v1.8.6
v1.8.4
v1.8.2
v1.8.0
v1.7.0
- Resolved #14
Depending on webpack version we will create a different "patch":
-
for webpack 4+, monkey-patch the extracted jsonpScriptSrc method from https://github.com/webpack/webpack/blob/master/lib/web/JsonpMainTemplatePlugin.js#L125
-
for older versions on webpack, wrap the output of https://github.com/webpack/webpack/blob/webpack-3/lib/JsonpMainTemplatePlugin.js#L50 hook into a function that overrides the global document.createElement method. That allows to capture the original params of
<script>
tag created by webpack, modify and re-assign arguments.
v1.7.0-beta.0
- Resolved #14
Depending on webpack version we will create a different "patch":
-
for webpack 4+, monkey-patch the extracted jsonpScriptSrc method from https://github.com/webpack/webpack/blob/master/lib/web/JsonpMainTemplatePlugin.js#L125
-
for older versions on webpack, wrap the output of https://github.com/webpack/webpack/blob/webpack-3/lib/JsonpMainTemplatePlugin.js#L50 hook into a function that overrides the global document.createElement method. That allows to capture the original params of
<script>
tag created by webpack, modify and re-assign arguments.