How to use rollup

Comprehensive rollup code examples:

How to use rollup.VERSION:

4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
    }
    return envPrefix;
}


exports.esbuildVersion = esbuild.version;
exports.rollupVersion = rollup.VERSION;
exports.createFilter = createFilter;
exports.createLogger = createLogger;
exports.isCSSRequest = isCSSRequest;
exports.loadEnv = loadEnv;

How to use rollup.watch:

162
163
164
165
166
167
168
169
170
171
			aditional[fileOrFolder] = true
		}
	}
}

let watcher = rollup.watch({
	input: build.input,
	/*experimentalCacheExpiry: 0,
	cache: true,*/
	treeshake: build.minified || !__IS_LOCALHOST__ ? true : false,

How to use rollup.rollup:

1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
const validateSchema = getSchemaValidationFunction('extract-cssdfn');

before(async () => {
  // Convert the JS module to a JS script that can be loaded in Puppeteer
  // without having to provide a URL for it (tests run in "about:blank" pages)
  const bundle = await rollup.rollup({
    input: path.resolve(__dirname, '../src/browserlib/extract-cssdfn.mjs')
  });
  const { output } = await bundle.generate({
    name: 'extractCSS',