MCPcopy
hub / github.com/rollup/rollup / updateOptions

Method updateOptions

src/Module.ts:1045–1059  ·  view source on GitHub ↗
({
		meta,
		moduleSideEffects,
		syntheticNamedExports
	}: Partial<PartialNull<ModuleOptions>>)

Source from the content-addressed store, hash-verified

1043 }
1044
1045 updateOptions({
1046 meta,
1047 moduleSideEffects,
1048 syntheticNamedExports
1049 }: Partial<PartialNull<ModuleOptions>>): void {
1050 if (moduleSideEffects != null) {
1051 this.info.moduleSideEffects = moduleSideEffects;
1052 }
1053 if (syntheticNamedExports != null) {
1054 this.info.syntheticNamedExports = syntheticNamedExports;
1055 }
1056 if (meta != null) {
1057 Object.assign(this.info.meta, meta);
1058 }
1059 }
1060
1061 private addDynamicImport(node: ImportExpression) {
1062 let argument: AstNode | string = node.sourceAstNode;

Callers 3

setSourceMethod · 0.95
addModuleSourceMethod · 0.80
transformReducerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected