Added imports

This commit is contained in:
Zef Hemel
2022-10-13 15:16:18 +02:00
parent 4c19ab21f2
commit 982623fc38
21 changed files with 120 additions and 46 deletions
+4 -5
View File
@@ -122,19 +122,18 @@ Deno.test("Run a deno sandbox", async () => {
import { bundle as plugOsBundle } from "./bin/plugos-bundle.ts";
import { esbuild } from "./compile.ts";
import { AssetBundle } from "./asset_bundle/bundle.ts";
const __dirname = new URL(".", import.meta.url).pathname;
Deno.test("Preload dependencies", async () => {
const globalModules = await plugOsBundle(
`${__dirname}../plugs/global.plug.yaml`,
);
// const globalModules = JSON.parse(
// Deno.readTextFileSync(`${tmpDist}/global.plug.json`),
// );
const testPlugManifest = await plugOsBundle(
`${__dirname}test.plug.yaml`,
{ excludeModules: Object.keys(globalModules.dependencies!) },
{
imports: [globalModules],
},
);
esbuild.stop();