Last active
March 3, 2023 16:45
-
-
Save nestarz/b4c44f0128296d8a9f2b1764100b1ddb to your computer and use it in GitHub Desktop.
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
export default () => ({ | |
name: "deno_read", | |
setup(build) { | |
build.onLoad( | |
{ filter: /.*\.(t|j)s(x|)/, namespace: "file" }, | |
async ({ path }) => ({ | |
contents: await Deno.readTextFile(path), | |
loader: "tsx", | |
}) | |
); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment