@normed/bundle 4.3.2 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +118 -0
- package/bundles/bin/cli.js +734 -351
- package/bundles/bin/cli.js.map +4 -4
- package/bundles/builders/index.d.ts +1 -1
- package/bundles/esbuild-plugins/css_external_urls.d.ts +11 -0
- package/bundles/esbuild-plugins/index.d.ts +1 -0
- package/bundles/esbuild-plugins/load_pug.d.ts +16 -0
- package/bundles/index.js +734 -351
- package/bundles/index.js.map +4 -4
- package/bundles/types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -12,4 +12,4 @@ export declare const builders: {
|
|
|
12
12
|
copy: Builder;
|
|
13
13
|
};
|
|
14
14
|
export declare const defaultBuilders: Builder[];
|
|
15
|
-
export declare function getBuilder(builders: Builder[], ext: string): Builder | null;
|
|
15
|
+
export declare function getBuilder(builders: Builder[], ext: string, modifiers?: string[]): Builder | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as esbuild from "esbuild";
|
|
2
|
+
/**
|
|
3
|
+
* Creates an esbuild plugin that marks URL patterns as external.
|
|
4
|
+
* This is useful for CSS files that reference runtime paths like /fonts/* or /images/*
|
|
5
|
+
* that should not be resolved at build time.
|
|
6
|
+
*
|
|
7
|
+
* @param patterns - Array of URL patterns to mark as external. Supports glob-style wildcards.
|
|
8
|
+
* e.g., ["/fonts/*", "/images/*", "https://*"]
|
|
9
|
+
*/
|
|
10
|
+
export declare function createCssExternalUrlsPlugin(patterns: string[]): esbuild.Plugin;
|
|
11
|
+
export default createCssExternalUrlsPlugin;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import type * as esbuild from "esbuild";
|
|
2
|
+
/**
|
|
3
|
+
* Discovered pug file reference from HTML.
|
|
4
|
+
*/
|
|
5
|
+
export interface DiscoveredPugReference {
|
|
6
|
+
originalHref: string;
|
|
7
|
+
absolutePath: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Map of source pug file path to discovered pug references.
|
|
11
|
+
* This is populated during build and used by the builder to trigger sub-builds.
|
|
12
|
+
*/
|
|
13
|
+
export declare const discoveredPugReferences: Map<string, DiscoveredPugReference[]>;
|
|
14
|
+
/**
|
|
15
|
+
* Clear discovered pug references. Should be called before a new build.
|
|
16
|
+
*/
|
|
17
|
+
export declare function clearDiscoveredPugReferences(): void;
|
|
2
18
|
declare const plugin: esbuild.Plugin;
|
|
3
19
|
export default plugin;
|