mud icon indicating copy to clipboard operation
mud copied to clipboard

vite-plugin-mud should resolve worldsFile as import path

Open frolic opened this issue 6 months ago • 1 comments

I would expect something like this to work

export default defineConfig({
  plugins: [react(), mud({ worldsFile: "@dust/world/worlds.json" })],

Current workaround is

export default defineConfig({
  plugins: [react(), mud({ worldsFile: "node_modules/@dust/world/worlds.json" })],

We could probably lift out the logic from CLI that handles both import and relative paths

frolic avatar Jun 23 '25 11:06 frolic