esbuild-css-modules-plugin
Advanced tools
Comparing version 3.0.0-dev.15 to 3.0.0-dev.16
import type { Plugin, PluginBuild } from 'esbuild'; | ||
export interface Options { | ||
declare interface BuildOptions { | ||
/** force to build modules-css files even if `bundle` is disabled in esbuild, default is `false` */ | ||
@@ -52,19 +52,25 @@ force?: boolean; | ||
interface BuildContext { | ||
options: Options; | ||
buildId: string; | ||
buildRoot: string; | ||
packageName: string; | ||
packageVersion: string; | ||
log: (...args: any[]) => void; | ||
relative: (to: string) => string; | ||
normalizedEntries: string[]; | ||
} | ||
declare function CssModulesPlugin(options?: BuildOptions): Plugin; | ||
declare function CssModulesPlugin(options?: Options): Plugin; | ||
declare namespace CssModulesPlugin { | ||
export interface Options extends BuildOptions {}; | ||
export interface BuildContext { | ||
options: Options; | ||
buildId: string; | ||
buildRoot: string; | ||
packageName: string; | ||
packageVersion: string; | ||
log: (...args: any[]) => void; | ||
relative: (to: string) => string; | ||
normalizedEntries: string[]; | ||
} | ||
export type setup = (build: PluginBuild, options: Options) => void; | ||
export type setup = (build: PluginBuild, options: Options) => void; | ||
export interface Build extends PluginBuild { | ||
context: BuildContext; | ||
export interface Build extends PluginBuild { | ||
context: BuildContext; | ||
} | ||
} | ||
export = CssModulesPlugin; |
{ | ||
"name": "esbuild-css-modules-plugin", | ||
"version": "3.0.0-dev.15", | ||
"version": "3.0.0-dev.16", | ||
"description": "A esbuild plugin to bundle css modules into js(x)/ts(x).", | ||
@@ -5,0 +5,0 @@ "main": "./index.cjs", |
@@ -10,9 +10,9 @@ { | ||
"lib": [ | ||
"ES2022" | ||
"ESNext" | ||
], | ||
"skipDefaultLibCheck": true, | ||
"skipLibCheck": true, | ||
"module": "NodeNext", | ||
"target": "ES2022", | ||
"moduleResolution": "nodenext", | ||
"module": "ESNext", | ||
"target": "ESNext", | ||
"moduleResolution": "bundler", | ||
"allowSyntheticDefaultImports": true, | ||
@@ -19,0 +19,0 @@ "esModuleInterop": true |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36946
886