(source, options)
| 67 | * @returns {CompileResult} |
| 68 | */ |
| 69 | export function compileModule(source, options) { |
| 70 | source = remove_bom(source); |
| 71 | state.reset({ warning: options.warningFilter, filename: options.filename }); |
| 72 | const validated = validate_module_options(options, ''); |
| 73 | |
| 74 | const analysis = analyze_module(source, validated); |
| 75 | return transform_module(analysis, source, validated); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * The parse function parses a component, returning only its abstract syntax tree. |
no test coverage detected