Skip to content

feat: add local package preset support - #451

Merged
antfu merged 5 commits into
mainfrom
userquin/feat-add-package-presets-support
Dec 3, 2023
Merged

feat: add local package preset support#451
antfu merged 5 commits into
mainfrom
userquin/feat-add-package-presets-support

Conversation

@userquin

@userquin userquin commented Nov 26, 2023

Copy link
Copy Markdown
Member

Description

We cannot use package presets, it seems we removed the presets option.

This PR includes:

  • add packagePresets options to allow use local installed packages as presets
  • add test to dts test using magic-string
  • add example using detect-browser-es package in examples/vite-svelte, check readme

About the note in the readme, check Additonal context below.

Linked Issues

related to issue #446 and PR #450

Additional context

@mdi/js is not working, mlly unable to extract module exports, it resolves to cjs and returns an empty array: tested on my local in Svelte (type module) example:

imagen

imagen

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@userquin userquin changed the title feat: add packages preset support feat: add local package preset support Nov 26, 2023
@userquin
userquin requested a review from antfu November 27, 2023 12:16
Comment thread src/types.ts Outdated
@antfu
antfu merged commit a2e9095 into main Dec 3, 2023
@antfu
antfu deleted the userquin/feat-add-package-presets-support branch December 3, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants