Added imports
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user