breaking: remove legacy optimizeCarbonImports preprocessor (#1217)

This commit is contained in:
metonym 2022-03-27 09:30:15 -07:00 committed by GitHub
commit 6986aac1be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();