From eefbded3b1d1bd071a0eda959578d341d11cf44f Mon Sep 17 00:00:00 2001 From: chuckd Date: Sat, 8 Jul 2017 10:30:37 -0400 Subject: [PATCH 1/3] Add section in readme about ES6 Promise dependency in Webpack 2.x --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index dd022ef..12a78a2 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,10 @@ To have Webpack use the built loader, specify the location of the loader in the }), ] +# ES6 Promise dependency in Webpack 2.x + +Webpack 2.x includes code in your packed application that uses ES6 Promise. If you need to support browsers that lack ES6 Promise support (e.g. IE 11), then you will need to provide this capability in your application. The [dojo-webpack-plugin-sample](https://github.com/OpenNTF/dojo-webpack-plugin-sample) project contains a tiny [wrapper](https://github.com/OpenNTF/dojo-webpack-plugin-sample/blob/master/js/dojoES6Promise.js) that implements ES6 Promise using dojo/Deferred. All you need to do is include this module as an AMD dependency in your application. + # Order of Plugin Registration When using Webpack's NormalModuleReplacementPlugin, the order of the plugin registration relative to the **dojo-webpack-plugin** registration is significant. **dojo-webpack-plugin** converts the module expressions to an absMid (relative paths resolved, maps and aliases applied), so if the NormalModuleReplacementPlugin is registered after **dojo-webpack-plugin**, then `data.request` will contain the absMid for the module and `data.originalRequest` will contain the original module expression before transformation by **dojo-webpack-plugin**. If the NormalModuleReplacementPlugin is registered before **dojo-webpack-plugin** then the NormalModuleReplacementPlugin will get to modify the request before **dojo-webpack-plugin** applies its transformations. From ac37e3b6569fe0ab678eedf4debf7140cc617981 Mon Sep 17 00:00:00 2001 From: chuckd Date: Sat, 8 Jul 2017 10:31:56 -0400 Subject: [PATCH 2/3] Revert "Add section in readme about ES6 Promise dependency in Webpack 2.x" This reverts commit eefbded3b1d1bd071a0eda959578d341d11cf44f. --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 12a78a2..dd022ef 100644 --- a/README.md +++ b/README.md @@ -122,10 +122,6 @@ To have Webpack use the built loader, specify the location of the loader in the }), ] -# ES6 Promise dependency in Webpack 2.x - -Webpack 2.x includes code in your packed application that uses ES6 Promise. If you need to support browsers that lack ES6 Promise support (e.g. IE 11), then you will need to provide this capability in your application. The [dojo-webpack-plugin-sample](https://github.com/OpenNTF/dojo-webpack-plugin-sample) project contains a tiny [wrapper](https://github.com/OpenNTF/dojo-webpack-plugin-sample/blob/master/js/dojoES6Promise.js) that implements ES6 Promise using dojo/Deferred. All you need to do is include this module as an AMD dependency in your application. - # Order of Plugin Registration When using Webpack's NormalModuleReplacementPlugin, the order of the plugin registration relative to the **dojo-webpack-plugin** registration is significant. **dojo-webpack-plugin** converts the module expressions to an absMid (relative paths resolved, maps and aliases applied), so if the NormalModuleReplacementPlugin is registered after **dojo-webpack-plugin**, then `data.request` will contain the absMid for the module and `data.originalRequest` will contain the original module expression before transformation by **dojo-webpack-plugin**. If the NormalModuleReplacementPlugin is registered before **dojo-webpack-plugin** then the NormalModuleReplacementPlugin will get to modify the request before **dojo-webpack-plugin** applies its transformations. From 1028f4743066fecb363b1fceb022b33cde821624 Mon Sep 17 00:00:00 2001 From: chuckd Date: Sat, 8 Jul 2017 10:30:37 -0400 Subject: [PATCH 3/3] Add section in readme about ES6 Promise dependency in Webpack 2.xx --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 2b56454..aa4e2e2 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,11 @@ plugins: [ }), ] ```` + +# ES6 Promise dependency in Webpack 2.x + +Webpack 2.x includes code in your packed application that uses ES6 Promise. If you need to support browsers that lack ES6 Promise support (e.g. IE 11), then you will need to provide this capability in your application. The [dojo-webpack-plugin-sample](https://github.com/OpenNTF/dojo-webpack-plugin-sample) project includes a tiny [wrapper](https://github.com/OpenNTF/dojo-webpack-plugin-sample/blob/master/js/dojoES6Promise.js) that implements ES6 Promise using dojo/Deferred. All you need to do is include this module as an AMD dependency in your application. + # Order of Plugin Registration When using Webpack's NormalModuleReplacementPlugin, the order of the plugin registration relative to the **dojo-webpack-plugin** registration is significant. **dojo-webpack-plugin** converts the module expressions to an absMid (relative paths resolved, maps and aliases applied), so if the NormalModuleReplacementPlugin is registered after **dojo-webpack-plugin**, then `data.request` will contain the absMid for the module and `data.originalRequest` will contain the original module expression before transformation by **dojo-webpack-plugin**. If the NormalModuleReplacementPlugin is registered before **dojo-webpack-plugin** then the NormalModuleReplacementPlugin will get to modify the request before **dojo-webpack-plugin** applies its transformations.