Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Mar 18, 2024
1 parent 13e76b6 commit d1c90bf
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions workspace/dev-compile/src/rollup/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { execSync } from 'node:child_process';
import { join, resolve } from "node:path";

import terser from '@rollup/plugin-terser';
import type {PackageInfo} from "@starbeam-dev/core";
import { Package, rootAt } from "@starbeam-dev/core";
import type { PackageInfo } from "@starbeam-dev/core";
import { Package, rootAt } from "@starbeam-dev/core";
import type { RollupOptions } from "rollup";
import copy from 'rollup-plugin-copy'

Expand Down Expand Up @@ -63,11 +63,8 @@ function compilePackage(pkg: PackageInfo, options: CompileOptions): RollupOption
PLUGINS.push(importMeta(mode));
}

const deps = Object.keys(pkg.dependencies);

const entries = entryPoints(pkg, mode).map((options) => ({
...options,
external: deps,
plugins: [
...PLUGINS,
externals(pkg),
Expand Down Expand Up @@ -125,15 +122,15 @@ function entryPoints(
hoistTransitiveImports: false,
exports: "auto",
},
onwarn: (warning, warn) => {
switch (warning.code) {
case "CIRCULAR_DEPENDENCY":
case "EMPTY_BUNDLE":
return;
default:
warn(warning);
}
},
// onwarn: (warning, warn) => {
// switch (warning.code) {
// case "CIRCULAR_DEPENDENCY":
// case "EMPTY_BUNDLE":
// return;
// default:
// warn(warning);
// }
// },
};
}

Expand Down

0 comments on commit d1c90bf

Please sign in to comment.