@seybel/breakhound 0.0.0-stage → 1.0.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/LICENSE +21 -0
- package/README.md +388 -2
- package/bin/breakhound.cjs +25 -0
- package/dist/cli.js +7318 -0
- package/dist/index.cjs +34 -0
- package/dist/index.d.cts +254 -0
- package/dist/index.d.ts +254 -0
- package/dist/index.js +7 -0
- package/dist/inject.js +2236 -0
- package/dist/next.cjs +87 -0
- package/dist/next.d.cts +18 -0
- package/dist/next.d.ts +18 -0
- package/dist/next.js +56 -0
- package/dist/schema.json +530 -0
- package/dist/source-loader.cjs +1650 -0
- package/dist/vite.cjs +1689 -0
- package/dist/vite.d.cts +29 -0
- package/dist/vite.d.ts +29 -0
- package/dist/vite.js +1662 -0
- package/dist/webpack.cjs +75 -0
- package/dist/webpack.d.cts +23 -0
- package/dist/webpack.d.ts +23 -0
- package/dist/webpack.js +44 -0
- package/package.json +104 -4
package/dist/vite.d.cts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import MagicString from 'magic-string';
|
|
2
|
+
|
|
3
|
+
export interface TransformResult {
|
|
4
|
+
code: string;
|
|
5
|
+
map: ReturnType<MagicString["generateMap"]>;
|
|
6
|
+
}
|
|
7
|
+
export interface SourcePluginOptions {
|
|
8
|
+
/** Project root that paths are relative to (default: Vite's root). */
|
|
9
|
+
root?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Vite plugin: `plugins: [breakhound()]`. Runs only on the dev server, before
|
|
13
|
+
* the framework plugins, so production builds are untouched.
|
|
14
|
+
*/
|
|
15
|
+
export function breakhound(options?: SourcePluginOptions): {
|
|
16
|
+
name: string;
|
|
17
|
+
enforce: "pre";
|
|
18
|
+
apply: "serve";
|
|
19
|
+
configResolved(config: {
|
|
20
|
+
root: string;
|
|
21
|
+
}): void;
|
|
22
|
+
transform(code: string, id: string): TransformResult | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
breakhound as default,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {};
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import MagicString from 'magic-string';
|
|
2
|
+
|
|
3
|
+
export interface TransformResult {
|
|
4
|
+
code: string;
|
|
5
|
+
map: ReturnType<MagicString["generateMap"]>;
|
|
6
|
+
}
|
|
7
|
+
export interface SourcePluginOptions {
|
|
8
|
+
/** Project root that paths are relative to (default: Vite's root). */
|
|
9
|
+
root?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Vite plugin: `plugins: [breakhound()]`. Runs only on the dev server, before
|
|
13
|
+
* the framework plugins, so production builds are untouched.
|
|
14
|
+
*/
|
|
15
|
+
export function breakhound(options?: SourcePluginOptions): {
|
|
16
|
+
name: string;
|
|
17
|
+
enforce: "pre";
|
|
18
|
+
apply: "serve";
|
|
19
|
+
configResolved(config: {
|
|
20
|
+
root: string;
|
|
21
|
+
}): void;
|
|
22
|
+
transform(code: string, id: string): TransformResult | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
breakhound as default,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {};
|