From 569e11b04f5e693c90227c7527d94f8318569d2f Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Tue, 8 Apr 2025 10:59:52 +0200 Subject: [PATCH] Bug 37911: (follow-up) Use style-, css-loader to preserve compatiblity with Koha's Vue components, e.g. Dialog.vue - For now let's not rely on rspack's native css loader to parse and bundle styles as we need to preserve compatibility. - Reintroduce configuration block for style-, css-loader for islands. --- rspack.config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rspack.config.js b/rspack.config.js index c4ee7d9a49..968f30dd4a 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -82,7 +82,6 @@ module.exports = [ }, { experiments: { - css: true, outputModule: true, }, entry: { @@ -126,7 +125,12 @@ module.exports = [ path.resolve(__dirname, "t/cypress/"), ], type: "javascript/auto", - } + }, + { + test: /\.css$/i, + type: "javascript/auto", + use: ["style-loader", "css-loader"], + }, ], }, plugins: [ -- 2.49.0