This is an automated email from the git hooks/post-receive script. New commit to branch ramonville in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 964301ae06cf06405d2fe78972c50c905fa6e828 Author: Samuel Maisonneuve <maisonneuve@codelutin.com> Date: Wed Dec 12 14:34:17 2018 +0100 Fix js for ie11 --- pollen-ui-riot-js/package.json | 4 +++- pollen-ui-riot-js/src/main/web/tag/Pollen.tag.html | 1 + pollen-ui-riot-js/webpack.config.js | 16 +++++++++++++--- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/pollen-ui-riot-js/package.json b/pollen-ui-riot-js/package.json index b1ecab48..83eec043 100644 --- a/pollen-ui-riot-js/package.json +++ b/pollen-ui-riot-js/package.json @@ -29,6 +29,7 @@ }, "devDependencies": { "@babel/core": "7.0.0-beta.46", + "@babel/polyfill": "^7.0.0", "@babel/preset-env": "7.0.0-beta.46", "babel-loader": "^8.0.0-beta.0", "copy-webpack-plugin": "^4.5.1", @@ -55,6 +56,7 @@ "remarkable": "^1.7.1", "riot": "^3.10.0", "riot-route": "^3.1.3", - "tooltip.js": "^1.2.0" + "tooltip.js": "^1.2.0", + "whatwg-fetch": "^3.0.0" } } diff --git a/pollen-ui-riot-js/src/main/web/tag/Pollen.tag.html b/pollen-ui-riot-js/src/main/web/tag/Pollen.tag.html index a83a98cd..c890072d 100644 --- a/pollen-ui-riot-js/src/main/web/tag/Pollen.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/Pollen.tag.html @@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #L% */ +import 'whatwg-fetch'; import "./PollenWaiter.tag.html"; import "./Authorization.tag.html"; import "./PollenHeader.tag.html"; diff --git a/pollen-ui-riot-js/webpack.config.js b/pollen-ui-riot-js/webpack.config.js index 63507673..c0c756a5 100644 --- a/pollen-ui-riot-js/webpack.config.js +++ b/pollen-ui-riot-js/webpack.config.js @@ -5,7 +5,7 @@ var CopyWebpackPlugin = require("copy-webpack-plugin"); module.exports = { entry: { - pollen: "./src/main/web" + pollen: "./src/main/web", }, output: { @@ -56,12 +56,22 @@ module.exports = { }] }, { - test: /\.js$/, + test: /\.js$|\.tag.html$/, exclude: /node_modules/, use: { loader: "babel-loader", options: { - presets: ["@babel/preset-env"] + presets: [ + [ + "@babel/preset-env", + { + useBuiltIns: 'usage', + targets: { + ie: 11 + } + } + ] + ] } } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.