UpperCod / esbuild-plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@uppercod/esbuild-*

monorepo of plugins created by @uppercod for esbuild:

@uppercod/esbuild-jsx-runtime

Add lightweight support for jsx-runtime, designed for Atomico.

@uppercod/esbuild-meta-url

import files as URL instances referenced to the file, example:

import style from "./style.css";

console.log(style.href);

@uppercod/esbuild-css-literals

This plugin allows to transform the css literals either by minifying them or preprocessing them with postcss

import pluginCssLiterals from "@uppercod/esbuild-css-literals";
import esbuild from "esbuild";

await esbuild.build({
    entryPoints: ["./tests/example.jsx"],
    plugins: [
        pluginCssLiterals({
            minify: true,
            postcss: true,
        }),
    ],
});

Todo

@uppercod/esbuild-globs 💡

that the entries respond to search by expressions

@uppercod/esbuild-sizes 💡

Expect to generate output file size metric

About


Languages

Language:JavaScript 96.3%Language:TypeScript 2.8%Language:CSS 0.9%