Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose type definition on exports #48

Merged
merged 1 commit into from
Jul 10, 2023
Merged

Expose type definition on exports #48

merged 1 commit into from
Jul 10, 2023

Commits on Jul 10, 2023

  1. Expose type definition on exports

    Fixes below issue when import `vavite/vite-dev-server` or `vavite/http-dev-server` in typescript file.
    
    ```
      There are types at '{some path}/node_modules/vavite/vite-dev-server.d.ts', but this result could not be resolved when respecting package.json "exports". The 'vavite' library may need to update its package.json or typings.ts(7016)
    ```
    
    reference:
    https://www.typescriptlang.org/docs/handbook/esm-node.html#packagejson-exports-imports-and-self-referencing
    cs09g authored Jul 10, 2023
    Configuration menu
    Copy the full SHA
    08e0b0d View commit details
    Browse the repository at this point in the history