From 32bc075f66524d534e409590f9cfa648cefcf37d Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Thu, 9 Nov 2023 10:36:53 +0000 Subject: [PATCH] Fix quote detection in rollup.js --- rollup.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 37a10787..475cf175 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -63,11 +63,11 @@ if (process.env.BUILD === 'production') { // Replace the entry point with the bundle .replace(/(www[\\/]js[\\/])app.js/, '$1bundle.min.js') // Remove all the lib files that will be included in the bundle - .replace(/(?:|,)\s*/, '') + .replace(/(?:|,)\s*/, '') // Alter remaining lib references .replace(/([\\/])js[\\/]lib/g, '$1js') // Remove unneeded ASM/WASM binaries - .replace(/"www[\\/]js[\\/].*dec.*js",\s*/g, '') + .replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '') }, { src: 'www/index.html', dest: 'dist/www', // Link the html to the new bundle entry point @@ -95,11 +95,11 @@ if (process.env.BUILD === 'production') { // Replace the entry point with the bundle .replace(/(www[\\/]js[\\/])app.js/, '$1bundle.js') // Remove all the lib files that will be included in the bundle - .replace(/(?:|,)\s*/, '') + .replace(/(?:|,)\s*/, '') // Alter remaining lib references .replace(/([\\/])js[\\/]lib/g, '$1js') // Remove unneeded ASM/WASM binaries - .replace(/"www[\\/]js[\\/].*dec.*js",\s*/g, '') + .replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '') }, { src: 'www/index.html', dest: 'dist/www', // Link the html to the new bundle entry point