generateur_v3/fold/node_modules/.vite/_svelte_metadata.json
2023-02-23 17:11:57 +01:00

1 line
1.6 KiB
JSON

{"compilerOptions":{"css":"external","dev":true,"hydratable":true},"configFile":false,"extensions":[".svelte"],"preprocess":{"script":"async script({ attributes, content, filename = \"\" }) {\n const lang = attributes.lang;\n if (!supportedScriptLangs.includes(lang))\n return;\n const transformResult = await transformWithEsbuild(content, filename, {\n loader: lang,\n target: \"esnext\",\n tsconfigRaw: {\n compilerOptions: {\n importsNotUsedAsValues: \"preserve\",\n preserveValueImports: true\n }\n }\n });\n return {\n code: transformResult.code,\n map: transformResult.map\n };\n }","style":"async ({ attributes, content, filename = \"\" }) => {\n const lang = attributes.lang;\n if (!supportedStyleLangs.includes(lang))\n return;\n if (!transform) {\n let resolvedConfig;\n if (style.__resolvedConfig) {\n resolvedConfig = style.__resolvedConfig;\n } else if (isResolvedConfig(config)) {\n resolvedConfig = config;\n } else {\n resolvedConfig = await resolveConfig(\n config,\n process.env.NODE_ENV === \"production\" ? \"build\" : \"serve\"\n );\n }\n transform = getCssTransformFn(resolvedConfig);\n }\n const moduleId = `${filename}.${lang}`;\n const result = await transform(content, moduleId);\n if (result.map?.sources?.[0] === moduleId) {\n result.map.sources[0] = path10.basename(filename);\n }\n return {\n code: result.code,\n map: result.map ?? void 0\n };\n }"}}