|
|
@ -76,7 +76,7 @@ function compile({ id, source, options, return_ast }) {
|
|
|
|
js: js.code,
|
|
|
|
js: js.code,
|
|
|
|
css: css?.code || `/* Add a <sty` + `le> tag to see compiled CSS */`,
|
|
|
|
css: css?.code || `/* Add a <sty` + `le> tag to see compiled CSS */`,
|
|
|
|
error: null,
|
|
|
|
error: null,
|
|
|
|
warnings,
|
|
|
|
warnings: warnings.map((warning) => warning.toJSON()),
|
|
|
|
metadata,
|
|
|
|
metadata,
|
|
|
|
ast
|
|
|
|
ast
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -95,7 +95,7 @@ function compile({ id, source, options, return_ast }) {
|
|
|
|
js: compiled.js.code,
|
|
|
|
js: compiled.js.code,
|
|
|
|
css,
|
|
|
|
css,
|
|
|
|
error: null,
|
|
|
|
error: null,
|
|
|
|
warnings: compiled.warnings,
|
|
|
|
warnings: compiled.warnings.map((warning) => warning.toJSON()),
|
|
|
|
metadata: compiled.metadata
|
|
|
|
metadata: compiled.metadata
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|