Skip to content

Commit a5988dc

Browse files
refactor: re-use source mapping url (#4351)
* refactor: re-use source mapping url * refactor: type/named import nits Co-authored-by: Lukas Taegert-Atkinson <[email protected]>
1 parent 055a7bf commit a5988dc

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

cli/run/build.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import ms from 'pretty-ms';
2-
import * as rollup from '../../src/node-entry';
3-
import { MergedRollupOptions } from '../../src/rollup/types';
2+
import { rollup } from '../../src/node-entry';
3+
import type { MergedRollupOptions } from '../../src/rollup/types';
44
import { bold, cyan, green } from '../../src/utils/colors';
55
import relativeId from '../../src/utils/relativeId';
6+
import { SOURCEMAPPING_URL } from '../../src/utils/sourceMappingURL';
67
import { handleError, stderr } from '../logging';
7-
import SOURCEMAPPING_URL from '../sourceMappingUrl';
8-
import { BatchWarnings } from './batchWarnings';
8+
import type { BatchWarnings } from './batchWarnings';
99
import { printTimings } from './timings';
1010

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

32-
const bundle = await rollup.rollup(inputOptions as any);
32+
const bundle = await rollup(inputOptions as any);
3333
if (useStdout) {
3434
const output = outputOptions[0];
3535
if (output.sourcemap && output.sourcemap !== 'inline') {

cli/sourceMappingUrl.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)