breaking: remove legacy optimizeCarbonImports preprocessor

This commit is contained in:
Eric Liu 2022-03-27 09:23:54 -07:00
commit 01f9e7aea5
8 changed files with 1 additions and 910 deletions

View file

@ -1,20 +0,0 @@
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const pkg = require("../package.json");
function buildApi() {
const components = {};
glob.sync("src/**/*.svelte").forEach((file) => {
const { name } = path.parse(file);
components[name] = { path: path.join(pkg.name, file) };
});
fs.writeFileSync(
"preprocess/api.json",
JSON.stringify({ version: pkg.version, components }, null, 2)
);
}
buildApi();