Skip to content

[FR]: assets support for rspack "publicDir" #183

@jbedard

Description

@jbedard

Currently absolute paths map to the repo root.

Maybe absolute paths for assets (only jsx assets?) should map to:

  1. the parent directory containing a package.json, falling back to the worksapce root
  2. the parent "assets directory" if configured via
    a. a js_assets_dir directive
    b. rspack publicDir (probably won't support this and you must duplicate this config in a directive)

See rspack static assets for more info about asset resolution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions