fix: expand the types of exports#183
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #183 +/- ##
==========================================
+ Coverage 89.40% 89.53% +0.13%
==========================================
Files 5 5
Lines 434 564 +130
Branches 37 38 +1
==========================================
+ Hits 388 505 +117
- Misses 46 59 +13 ☔ View full report in Codecov by Sentry. |
danielroe
approved these changes
Jun 30, 2024
pi0
approved these changes
Jul 1, 2024
exportsexports
This was referenced Jul 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refer to Vue's package.json. It also could be an array
Type: <Object> | <string> | <string[]>{ "exports": { ".": { "import": { "types": "./dist/vue.d.mts", "node": "./index.mjs", "default": "./dist/vue.runtime.esm-bundler.js" }, "require": { "types": "./dist/vue.d.ts", "node": { "production": "./dist/vue.cjs.prod.js", "development": "./dist/vue.cjs.js", "default": "./index.js" }, "default": "./index.js" } }, "./server-renderer": { "import": { "types": "./server-renderer/index.d.mts", "default": "./server-renderer/index.mjs" }, "require": { "types": "./server-renderer/index.d.ts", "default": "./server-renderer/index.js" } }, "./compiler-sfc": { "import": { "types": "./compiler-sfc/index.d.mts", "browser": "./compiler-sfc/index.browser.mjs", "default": "./compiler-sfc/index.mjs" }, "require": { "types": "./compiler-sfc/index.d.ts", "browser": "./compiler-sfc/index.browser.js", "default": "./compiler-sfc/index.js" } }, "./jsx-runtime": { "types": "./jsx-runtime/index.d.ts", "import": "./jsx-runtime/index.mjs", "require": "./jsx-runtime/index.js" }, "./jsx-dev-runtime": { "types": "./jsx-runtime/index.d.ts", "import": "./jsx-runtime/index.mjs", "require": "./jsx-runtime/index.js" }, "./jsx": "./jsx.d.ts", "./dist/*": "./dist/*", "./package.json": "./package.json" } }