-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dd88bf
commit 3de4771
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { realpathSync } from 'fs'; | ||
import { rollup } from 'rollup'; | ||
import * as rollup from 'rollup'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Rich-Harris
Author
Contributor
|
||
import relative from 'require-relative'; | ||
import handleError from './handleError'; | ||
import SOURCEMAPPING_URL from './sourceMappingUrl.js'; | ||
|
@@ -57,7 +57,7 @@ export default function runRollup ( command ) { | |
config = realpathSync( config ); | ||
} | ||
|
||
rollup({ | ||
rollup.rollup({ | ||
entry: config, | ||
onwarn: message => { | ||
if ( /Treating .+ as external dependency/.test( message ) ) return; | ||
|
@@ -216,7 +216,7 @@ function bundle ( options ) { | |
handleError({ code: 'MISSING_INPUT_OPTION' }); | ||
} | ||
|
||
return rollup( options ).then( bundle => { | ||
return rollup.rollup( options ).then( bundle => { | ||
if ( options.dest ) { | ||
return bundle.write( options ); | ||
} | ||
|
And what's the difference?