From d441739ab2d2eb6674f5a989cd34d7e0fc83fccd Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 3 Sep 2021 03:50:52 -0500 Subject: [PATCH] Fix #4802: Ruffle conflicts with danbooru JS Caused by Webpack clobbering the `Danbooru` variable for unknown reasons when the app/javascript/packs/flash.js pack is loaded. Disabling the output.library option seems to fix it. --- config/webpack/base.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/webpack/base.js b/config/webpack/base.js index 0d72b5483..1e8cde659 100644 --- a/config/webpack/base.js +++ b/config/webpack/base.js @@ -1,9 +1,9 @@ const { webpackConfig, merge } = require('@rails/webpacker') module.exports = merge(webpackConfig, { - output: { - library: "Danbooru", - }, +// output: { +// library: "Danbooru", +// }, resolve: { alias: { "jquery": "jquery/src/jquery.js",