Skip to content
Discussion options

You must be logged in to vote

this fixes it and produces (AFAIK) the correct output:

diff --git a/vite.config.js b/vite.config.js
index 88aefc2..f0536e4 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -4,11 +4,21 @@ import { tanstackRouter } from '@tanstack/router-plugin/vite';
 import macros from 'unplugin-parcel-macros';
 import optimizeLocales from '@react-aria/optimize-locales-plugin';
 
+function withNormalizedMacroIds(plugin) {
+  return {
+    ...plugin,
+    name: `${plugin.name}-normalized-ids`,
+    transform(code, id) {
+      return plugin.transform?.call(this, code, id.replace(/\?.*$/, ''));
+    },
+  };
+}
+
 // https://vitejs.dev/config/
 export default defineConfig({
   appType: 'spa', // 'spa' | …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@msalsbery
Comment options

@schiller-manuel
Comment options

@schiller-manuel
Comment options

Answer selected by msalsbery
@schiller-manuel
Comment options

@msalsbery
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants