Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gulpjs/gulp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b121e5df892b927d13aaa9d1879aa2dfbc37a8ae
Choose a base ref
..
head repository: gulpjs/gulp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 39097d2c5bc0964e80e90ede07da79b65d8d7e15
Choose a head ref
Showing with 4 additions and 4 deletions.
  1. +4 −4 docs/recipes/rollup.md
8 changes: 4 additions & 4 deletions docs/recipes/rollup.md
Original file line number Diff line number Diff line change
@@ -50,12 +50,12 @@ const outputOptions = {
sourcemap: !isProd,
};

const compileScripts = async () => {
async function compileScripts() {
const bundle = await rollup.rollup(inputOptions);
await bundle.write(outputOptions);
};
}

const compileAndWatchScripts = () => {
function compileAndWatchScripts() {
// this function already creates a build initially, hence the name
// of the task, so you don't need to run "compileScripts" first
const watcher = rollup.watch({
@@ -67,5 +67,5 @@ const compileAndWatchScripts = () => {
console.log("Compiled scripts");
}
});
};
}
```