这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: support assets can be imported as strings #1026

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

Closed
wants to merge 1 commit into from
Closed

feat: support assets can be imported as strings #1026

wants to merge 1 commit into from

Conversation

itancc
Copy link

@itancc itancc commented Oct 18, 2023

Added a plugin in order to Assets can be imported as strings using the ?raw suffix. Like vite.
I think it's commonly used.

@codesandbox
Copy link

codesandbox bot commented Oct 18, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Oct 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tsup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 8:37am

@itancc itancc changed the title feat: add import-raw esbuild plugin feat: support assets can be imported as strings Oct 25, 2023
@ocavue
Copy link
Collaborator

ocavue commented Nov 17, 2023

tsup supports custom esbuild plugin. So this feature could be done without editing tsup itself. For example, esbuild-plugin-raw can be used with tsup. Thanks for your contribution but maybe we should keep tsup itself small.

@itancc itancc closed this Nov 20, 2023
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