Skip to content

How to import js file as raw string? #11487

Answered by alexeyten
Trinovantes asked this question in Q&A
Discussion options

You must be logged in to vote

Have you tried this?

import client from "./client.js" with { type: "text" };

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Trinovantes
Comment options

@truongan07
Comment options

@Trinovantes
Comment options

Answer selected by Trinovantes
Comment options

You must be logged in to vote
1 reply
@Trinovantes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants