Skip to content

Commit

Permalink
Merge pull request #17 from kernel-mod/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyza authored May 6, 2022
2 parents d0cb0c4 + 31dfe0e commit 0dfb3db
Show file tree
Hide file tree
Showing 37 changed files with 875 additions and 627 deletions.
10 changes: 4 additions & 6 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,14 @@ for (const file of sourceFiles) {
importAssertions: true,
},
transform: {},
target: "es2016",
target: "es2017",
loose: true,
externalHelpers: false,
keepClassNames: true,
minify: {
compress: false, // TODO: Figure out why this breaks package loading in main.
mangle: production,
},
// paths: {
// "@kernel": ["../core/src/index.js"],
// "@kernel/*": ["../core/src/*"],
// },
},
module: {
type: "commonjs",
Expand Down Expand Up @@ -108,9 +104,11 @@ await new Promise((resolve) =>
}
)
);

await fs.ensureDir(path.join(baseDir, "transpiled", "renderer"));
await fs.copyFile(
path.join(baseDir, "..", "browser", "dist", "index.js"),
path.join(baseDir, "transpiled", "preload", "renderer", "index.js")
path.join(baseDir, "transpiled", "renderer", "index.js")
);

console.time("Successfully packed");
Expand Down
345 changes: 0 additions & 345 deletions src/Patcher.ts

This file was deleted.

Loading

0 comments on commit 0dfb3db

Please sign in to comment.