Open tamuhey opened 1 year ago
Likely just need an example of how to use --loader
here's a quick example in case somebody would like to use it to contribute a proper example:
esbuild(
name = "bundle",
srcs = [":src"],
config = {
"loader": {
".ttf": "file",
},
},
entry_point = "src/index.js",
)
The "config" parameter seems to accept a dictionary matching the JSON options for the esbuild js api: https://esbuild.github.io/content-types/#file
What is the current behavior?
Not sure how to use
--loader
option, e.g.--loader:.svg=text
Describe the feature
Allow users to set
--loader:.svg=text
Fund our work