Skip to content

Drop sophora-components Vite shims after first monorepo release #521

Description

@romanlamsal

What

Once the first @swr-data-lab/components release from the monorepo split is published (contains ./dist/* wildcard exports and the esm-env change), clean up sophora-components/vite.config.ts:

  1. Remove the resolveId rewrite for @swr-data-lab/components/dist/* — deep imports then resolve through the official exports map.
  2. Remove the $app/environmentsrc/lib/shims/app-environment.ts rewrite and delete the shim file — the library no longer imports $app/environment (Decouple component library from SvelteKit runtime ($app/environment → esm-env) #517).
  3. Bump the @swr-data-lab/components dependency to the new major.

Why

Both shims exist only to paper over gaps in the published package (undeclared subpath exports, SvelteKit-only virtual module). Keeping dead resolution hacks around obscures how the app actually resolves modules.

Blocked by

First release after #518 / #517 land on main.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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