From cb0ffc3ba306ae42700d789e0ad307868a6e2e49 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Tue, 1 Jun 2021 04:33:44 -0400 Subject: [PATCH] NodeGraph: Make web worker inline fixing error when assets are loaded with different origin (#35013) (#35019) (cherry picked from commit cb4f5b249f882488fe9ded517a76bf344db83be8) Co-authored-by: Andrej Ocenas --- scripts/webpack/webpack.common.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/webpack/webpack.common.js b/scripts/webpack/webpack.common.js index f894f2dff95..385ca33bfdf 100644 --- a/scripts/webpack/webpack.common.js +++ b/scripts/webpack/webpack.common.js @@ -160,7 +160,12 @@ module.exports = { }, { test: /\.worker\.js$/, - use: { loader: 'worker-loader' }, + use: { + loader: 'worker-loader', + options: { + inline: 'fallback', + }, + }, }, ], },