Skip to content

Commit

Permalink
feat(raw): add .sql to raw file extensions (#2745)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbegerau authored Sep 23, 2024
1 parent 33988d5 commit 05aa182
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rollup/plugins/raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function raw(opts: RawOptions = {}): Plugin {
".css",
".htm",
".html",
".sql",
...(opts.extensions || []),
]);

Expand Down Expand Up @@ -81,7 +82,7 @@ function isBinary(id: string) {
if (idMime.startsWith("text/")) {
return false;
}
if (/application\/(json|xml|yaml)/.test(idMime)) {
if (/application\/(json|sql|xml|yaml)/.test(idMime)) {
return false;
}
return true;
Expand Down

0 comments on commit 05aa182

Please sign in to comment.