Skip to content

Commit

Permalink
refactor: re-use source mapping url (#4351)
Browse files Browse the repository at this point in the history
* refactor: re-use source mapping url

* refactor: type/named import nits

Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
dnalborczyk and lukastaegert committed Jan 18, 2022
1 parent 055a7bf commit a5988dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions cli/run/build.ts
@@ -1,11 +1,11 @@
import ms from 'pretty-ms';
import * as rollup from '../../src/node-entry';
import { MergedRollupOptions } from '../../src/rollup/types';
import { rollup } from '../../src/node-entry';
import type { MergedRollupOptions } from '../../src/rollup/types';
import { bold, cyan, green } from '../../src/utils/colors';
import relativeId from '../../src/utils/relativeId';
import { SOURCEMAPPING_URL } from '../../src/utils/sourceMappingURL';
import { handleError, stderr } from '../logging';
import SOURCEMAPPING_URL from '../sourceMappingUrl';
import { BatchWarnings } from './batchWarnings';
import type { BatchWarnings } from './batchWarnings';
import { printTimings } from './timings';

export default async function build(
Expand All @@ -29,7 +29,7 @@ export default async function build(
stderr(cyan(`\n${bold(inputFiles!)}${bold(files.join(', '))}...`));
}

const bundle = await rollup.rollup(inputOptions as any);
const bundle = await rollup(inputOptions as any);
if (useStdout) {
const output = outputOptions[0];
if (output.sourcemap && output.sourcemap !== 'inline') {
Expand Down
4 changes: 0 additions & 4 deletions cli/sourceMappingUrl.ts

This file was deleted.

0 comments on commit a5988dc

Please sign in to comment.