10 lines
319 B
TypeScript
10 lines
319 B
TypeScript
import type { BunPlugin } from "bun";
|
|
|
|
/** Match the production bundler's external font URLs in the HTML dev server. */
|
|
export default {
|
|
name: "external-browser-fonts",
|
|
setup(build) {
|
|
build.onResolve({ filter: /^\/fonts\/browser\// }, args => ({ path: args.path, external: true }));
|
|
},
|
|
} satisfies BunPlugin;
|