Skip to content

Commit

Permalink
chore(ruleset-bundler): use OutputChunk
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Jun 29, 2022
1 parent 552530a commit 8f1b4dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ruleset-bundler/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { rollup, Plugin, RenderedChunk } from 'rollup';
import { rollup, Plugin, OutputChunk } from 'rollup';
import { isURL } from '@stoplight/path';
import { isPackageImport } from './utils/isPackageImport';
import { dedupeRollupPlugins } from './utils/dedupeRollupPlugins';
Expand All @@ -20,11 +20,11 @@ export async function bundleRuleset(
export async function bundleRuleset(
input: string,
opts: Omit<BundleOptions, 'fullOutput'> & { fullOutput: true },
): Promise<RenderedChunk>;
): Promise<OutputChunk>;
export async function bundleRuleset(
input: string,
{ target = 'browser', plugins, format, treeshake = false, fullOutput = false }: BundleOptions,
): Promise<string | RenderedChunk> {
): Promise<string | OutputChunk> {
const bundle = await rollup({
input,
plugins: dedupeRollupPlugins(plugins),
Expand Down

0 comments on commit 8f1b4dc

Please sign in to comment.