@chialab/esbuild-plugin-transform

Pipe transformation plugin for esbuild.


Keywords
esbuild, plugin, pipe, transform, bundler, linter, test-runner
License
MIT
Install
npm install @chialab/esbuild-plugin-transform@0.12.39

Documentation

RNA logo

RNA • A bundler, a server and a test runner for modern modules and applications.


⚡️ Transpile and bundle JavaScript, TypeScript, JSX, CSS and HTML with esbuild.

🧭 Serve unbundled modules on demand with livereload and HMR using the Web Dev Server.

🦠 Run tests in browser and node environments using the Web Test Runner and Mocha.

📺 Legacy support with Babel and PostCSS.


Quick usage

Full documentation at Chialab.io and Github Wiki.

$ npm i -D \
    @chialab/rna \
    @chialab/rna-bundler \
    @chialab/rna-dev-server \
    @chialab/rna-browser-test-runner

package.json

{
    "scripts": {
        "start": "rna serve src --port 3000",
        "build": "rna build src/index.html --output public",
        "test": "rna test:browser 'test/**/*.spec'"
    }
}

Read more about the cli module.


Packages

The RNA ecosystem provides a set of plugins and addons for core tools designed to be used even outside the rna cli.

Package Description Version
@chialab/cjs-to-esm A commonjs to esm converter. npm
@chialab/esbuild-plugin-alias A plugin for esbuild that resolves aliases or empty modules. npm
@chialab/esbuild-plugin-any-file A loader plugin for esbuild for files with unknown loader. npm
@chialab/esbuild-plugin-babel A pluggable esbuild plugin that runs babel for es5 transpilation. npm
@chialab/esbuild-plugin-commonjs A commonjs to esm converter for esbuild. npm
@chialab/esbuild-plugin-emit Helpers functions to emit chunks and files from a esbuild run. npm
@chialab/esbuild-plugin-env Define all environement variables for esbuild. npm
@chialab/esbuild-plugin-html A HTML loader plugin for esbuild. npm
@chialab/esbuild-plugin-meta-url A file loader plugin for esbuild for constructed URLs using import metadata. npm
@chialab/esbuild-plugin-postcss A CSS loader plugin for esbuild that uses postcss as preprocessor. npm
@chialab/esbuild-plugin-transform Pipe transformation plugin for esbuild. npm
@chialab/esbuild-plugin-webpack-include A plugin for esbuild that converts the webpackInclude syntax. npm
@chialab/esbuild-plugin-worker Collect and transpile Web Workers with esbuild. npm
@chialab/estransform Execute multiple transformations on JavaScript sources with full sourcemaps support. npm
@chialab/node-resolve A promise based node resolution library based on enhanced-resolve. npm
@chialab/postcss-preset-chialab The postcss preset used by Chialab. npm
@chialab/postcss-url-rebase A postcss plugin for url() rebasing before import. npm
@chialab/rna A bundler, a server and a test runner for modern modules and applications. npm
@chialab/rna-apidoc Generate api documentation using TypeScript symbols. npm
@chialab/rna-browser-test-runner A test runner for browsers based on Web Test Runner. npm
@chialab/rna-bundler A JavaScript, CSS and HTML bundler based on esbuild. npm
@chialab/rna-config-loader Load and setup RNA configuration object. npm
@chialab/rna-node-test-runner A test runner for node based on mocha. npm
@chialab/rna-saucelabs-test-runner A test runner for Saucelabs based on on Web Test Runner. npm
@chialab/rna-dev-server A webapp server based on Web Dev Server. npm
@chialab/wds-plugin-hmr-css Enable CSS hmr for the web dev server. npm
@chialab/wds-plugin-legacy Transform esm modules served by the web dev server into SystemJS modules for legacy browser compatibility. npm
@chialab/wds-plugin-node-resolve A plugin the Web Dev Server for node resolutions. npm
@chialab/wds-plugin-polyfill Inject polyfills to HTML responses served by the web dev server. npm
@chialab/wds-plugin-rna A plugin for the Web Dev Server to transpile sources using the RNA bundler. npm
@chialab/wtr-mocha-reporter A Mocha reporter interface for the Web Test Runner. npm

License

RNA is released under the MIT license.