Closed RyosukeCla closed 3 years ago
こんな感じ?
const { js, css, warnings } = compile(code, { css: false }); if (css.code) { const cssFileName = `svelte-generated-css/${Math.random().toString(16)}-${path.filename(resolveId)}.css`; js.code += `\nimport "${cssFileName}";\n`; cssEmit.set(cssFileName, css); }
こんな感じ?