Files
sweet/tests/fixture_dev_checks/plugins/not_having_modules.ts
T

16 lines
312 B
TypeScript

import { Plugin } from "$fresh/server.ts";
export default function notHavingModules(): Plugin {
return {
name: "not_having_modules",
entrypoints: { "main": "() => {}" },
render(ctx) {
ctx.render();
return {
scripts: [{ entrypoint: "main", state: [] }],
};
},
};
}