Skip to content

vite-plugin-mud should resolve worldsFile as import path #3758

@frolic

Description

@frolic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions