MCPcopy Create free account
hub / github.com/BuilderIO/framework-benchmarks / stripSvelteNonRootStyle

Function stripSvelteNonRootStyle

apps/components/mitosis.config.js:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61});
62
63const stripSvelteNonRootStyle = () => () => ({
64 code: {
65 // Remove generated inline styles for svelte - they break the build
66 // This matches what we generate:
67 post: (code) => code.replace(/<style>\s*{@html[\s\S]+?<\/style>/g, ''),
68 },
69});
70
71const baseOptions = {
72 plugins: [

Callers 1

mitosis.config.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected