Skip to content

Commit 7672b04

Browse files
aaronhooperphated
authored andcommitted
Docs: Correct typo in rollup example (#2406)
Rollup is imported by name, so it should be called like `rollup()`.
1 parent be5906b commit 7672b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started/7-using-plugins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const { rollup } = require('rollup');
3737

3838
// Rollup's promise API works great in an `async` task
3939
exports.default = async function() {
40-
const bundle = await rollup.rollup({
40+
const bundle = await rollup({
4141
input: 'src/index.js'
4242
});
4343

0 commit comments

Comments
 (0)