From 61bfb5f8a6c9009e48c9d86e44314ff239b1c8be Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 30 May 2018 11:25:17 +0200 Subject: [PATCH 1/2] Fixes #8: Avoid arrow functions in generated code --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3d4fc99e..c183b840 100644 --- a/index.js +++ b/index.js @@ -95,7 +95,7 @@ function createLoaderRules(languages, features, workers, publicPath) { [label]: `${publicPath ? `${stripTrailingSlash(publicPath)}/` : ''}${output}`, }), {}); const globals = { - 'MonacoEnvironment': `((paths) => ({ getWorkerUrl: (moduleId, label) => paths[label] }))(${ + 'MonacoEnvironment': `(function (paths) { return { getWorkerUrl: function (moduleId, label) { return paths[label]; } }; } )(${ JSON.stringify(workerPaths, null, 2) })`, }; From ef899cbd3529fb59faef344433008b76dd348970 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Wed, 30 May 2018 11:25:44 +0200 Subject: [PATCH 2/2] 1.2.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9ff1fe4d..a0e0a758 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "monaco-editor-webpack-plugin", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4b89a689..803d71c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monaco-editor-webpack-plugin", - "version": "1.2.0", + "version": "1.2.1", "description": "A webpack plugin for the Monaco Editor", "main": "index.js", "scripts": {