@stylable/esbuild

@stylable/esbuild
Installation
npm install @stylable/esbuild
Usage
const { build } = require('esbuild');
const { stylablePlugin } = require('@stylable/esbuild');
build({
plugins: [stylablePlugin({ })],
});
Options
interface ESBuildOptions {
cssInjection?: 'js' | 'css';
diagnosticsMode?: DiagnosticsMode;
stylableConfig?: (config: StylableConfig, build: PluginBuild) => StylableConfig;
configFile?: boolean | string;
mode?: 'production' | 'development';
runtimeStylesheetId?: 'module' | 'namespace' | 'module+namespace';
optimize?: {
removeUnusedComponents?: boolean;
};
}
License
Copyright (c) 2023 Wix.com Ltd. All Rights Reserved. Use of this source code is governed by an MIT license.