function compileModule(source, options) {
	source = remove_bom(source);
	state.reset_warning_filter(options.warningFilter);
	const validated = validate_module_options(options, '');
	state.reset(source, validated);

	const analysis = analyze_module(parse_acorn(source, false), validated);
	return transform_module(analysis, source, validated);
}
`compileModule` takes your JavaScript source code containing runes, and turns it into a JavaScript module.

@param {string} source The component source code
@param {ModuleCompileOptions} options
@returns {CompileResult}