react-code-locator 0.1.16 → 0.1.18
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/README.md +54 -279
- package/dist/esbuild.cjs +7025 -295
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.d.cts +38 -6
- package/dist/esbuild.d.ts +38 -6
- package/dist/esbuild.js +7025 -295
- package/dist/esbuild.js.map +1 -1
- package/dist/index.cjs +7132 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7126 -15
- package/dist/index.js.map +1 -1
- package/dist/swc.cjs +7020 -293
- package/dist/swc.cjs.map +1 -1
- package/dist/swc.d.cts +43 -19
- package/dist/swc.d.ts +43 -19
- package/dist/swc.js +7020 -293
- package/dist/swc.js.map +1 -1
- package/dist/transform-CXh-m5Ez.d.cts +12 -0
- package/dist/transform-CXh-m5Ez.d.ts +12 -0
- package/dist/unplugin.cjs +6850 -8
- package/dist/unplugin.cjs.map +1 -1
- package/dist/unplugin.d.cts +4 -13
- package/dist/unplugin.d.ts +4 -13
- package/dist/unplugin.js +6848 -6
- package/dist/unplugin.js.map +1 -1
- package/dist/vite.cjs +7029 -304
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.d.cts +39 -14
- package/dist/vite.d.ts +39 -14
- package/dist/vite.js +7029 -303
- package/dist/vite.js.map +1 -1
- package/package.json +5 -51
- package/dist/babel.cjs +0 -370
- package/dist/babel.cjs.map +0 -1
- package/dist/babel.d.cts +0 -13
- package/dist/babel.d.ts +0 -13
- package/dist/babel.js +0 -341
- package/dist/babel.js.map +0 -1
- package/dist/babelInjectComponentSource.cjs +0 -342
- package/dist/babelInjectComponentSource.cjs.map +0 -1
- package/dist/babelInjectComponentSource.d.cts +0 -15
- package/dist/babelInjectComponentSource.d.ts +0 -15
- package/dist/babelInjectComponentSource.js +0 -317
- package/dist/babelInjectComponentSource.js.map +0 -1
- package/dist/sourceAdapter-dPr5CgLi.d.cts +0 -14
- package/dist/sourceAdapter-dPr5CgLi.d.ts +0 -14
- package/dist/webpack.cjs +0 -68
- package/dist/webpack.cjs.map +0 -1
- package/dist/webpack.d.cts +0 -2
- package/dist/webpack.d.ts +0 -2
- package/dist/webpack.js +0 -82
- package/dist/webpack.js.map +0 -1
- package/dist/webpackRuntimeEntry.cjs +0 -375
- package/dist/webpackRuntimeEntry.cjs.map +0 -1
- package/dist/webpackRuntimeEntry.d.cts +0 -2
- package/dist/webpackRuntimeEntry.d.ts +0 -2
- package/dist/webpackRuntimeEntry.js +0 -373
- package/dist/webpackRuntimeEntry.js.map +0 -1
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TransformOptions } from './transform-CXh-m5Ez.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* esbuild Plugin for react-code-locator
|
|
5
|
+
* Uses acorn-based transform (zero-dependency)
|
|
6
|
+
*/
|
|
2
7
|
|
|
3
8
|
type EsbuildOnLoadResult = {
|
|
4
9
|
contents: string;
|
|
@@ -15,11 +20,38 @@ type EsbuildPlugin = {
|
|
|
15
20
|
name: string;
|
|
16
21
|
setup: (build: EsbuildPluginBuild) => void;
|
|
17
22
|
};
|
|
18
|
-
|
|
23
|
+
interface EsbuildSourceAdapterConfig {
|
|
19
24
|
plugins: EsbuildPlugin[];
|
|
25
|
+
}
|
|
26
|
+
interface EsbuildSourceAdapterOptions extends Omit<TransformOptions, 'filename'> {
|
|
27
|
+
projectRoot?: string;
|
|
28
|
+
injectComponentSource?: boolean;
|
|
29
|
+
injectJsxSource?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare function esbuildSourceTransformPlugin(options?: EsbuildSourceAdapterOptions): EsbuildPlugin;
|
|
32
|
+
declare function createEsbuildSourceAdapter(options?: EsbuildSourceAdapterOptions): {
|
|
33
|
+
kind: "esbuild";
|
|
34
|
+
name: string;
|
|
35
|
+
options: {
|
|
36
|
+
projectRoot: string;
|
|
37
|
+
injectComponentSource: boolean;
|
|
38
|
+
injectJsxSource: boolean;
|
|
39
|
+
};
|
|
40
|
+
config: {
|
|
41
|
+
plugins: EsbuildPlugin[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
declare const esbuildSourceAdapter: {
|
|
45
|
+
kind: "esbuild";
|
|
46
|
+
name: string;
|
|
47
|
+
options: {
|
|
48
|
+
projectRoot: string;
|
|
49
|
+
injectComponentSource: boolean;
|
|
50
|
+
injectJsxSource: boolean;
|
|
51
|
+
};
|
|
52
|
+
config: {
|
|
53
|
+
plugins: EsbuildPlugin[];
|
|
54
|
+
};
|
|
20
55
|
};
|
|
21
|
-
declare function esbuildSourceTransformPlugin(options?: SourceInjectionOptions): EsbuildPlugin;
|
|
22
|
-
declare function createEsbuildSourceAdapter(options?: SourceInjectionOptions): SourceAdapterDescriptor<EsbuildSourceAdapterConfig, SourceInjectionOptions>;
|
|
23
|
-
declare const esbuildSourceAdapter: SourceAdapterDescriptor<EsbuildSourceAdapterConfig, SourceInjectionOptions>;
|
|
24
56
|
|
|
25
|
-
export { type EsbuildPlugin, type EsbuildSourceAdapterConfig, createEsbuildSourceAdapter, esbuildSourceAdapter, esbuildSourceTransformPlugin };
|
|
57
|
+
export { type EsbuildPlugin, type EsbuildSourceAdapterConfig, type EsbuildSourceAdapterOptions, createEsbuildSourceAdapter, esbuildSourceAdapter, esbuildSourceTransformPlugin };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T as TransformOptions } from './transform-CXh-m5Ez.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* esbuild Plugin for react-code-locator
|
|
5
|
+
* Uses acorn-based transform (zero-dependency)
|
|
6
|
+
*/
|
|
2
7
|
|
|
3
8
|
type EsbuildOnLoadResult = {
|
|
4
9
|
contents: string;
|
|
@@ -15,11 +20,38 @@ type EsbuildPlugin = {
|
|
|
15
20
|
name: string;
|
|
16
21
|
setup: (build: EsbuildPluginBuild) => void;
|
|
17
22
|
};
|
|
18
|
-
|
|
23
|
+
interface EsbuildSourceAdapterConfig {
|
|
19
24
|
plugins: EsbuildPlugin[];
|
|
25
|
+
}
|
|
26
|
+
interface EsbuildSourceAdapterOptions extends Omit<TransformOptions, 'filename'> {
|
|
27
|
+
projectRoot?: string;
|
|
28
|
+
injectComponentSource?: boolean;
|
|
29
|
+
injectJsxSource?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare function esbuildSourceTransformPlugin(options?: EsbuildSourceAdapterOptions): EsbuildPlugin;
|
|
32
|
+
declare function createEsbuildSourceAdapter(options?: EsbuildSourceAdapterOptions): {
|
|
33
|
+
kind: "esbuild";
|
|
34
|
+
name: string;
|
|
35
|
+
options: {
|
|
36
|
+
projectRoot: string;
|
|
37
|
+
injectComponentSource: boolean;
|
|
38
|
+
injectJsxSource: boolean;
|
|
39
|
+
};
|
|
40
|
+
config: {
|
|
41
|
+
plugins: EsbuildPlugin[];
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
declare const esbuildSourceAdapter: {
|
|
45
|
+
kind: "esbuild";
|
|
46
|
+
name: string;
|
|
47
|
+
options: {
|
|
48
|
+
projectRoot: string;
|
|
49
|
+
injectComponentSource: boolean;
|
|
50
|
+
injectJsxSource: boolean;
|
|
51
|
+
};
|
|
52
|
+
config: {
|
|
53
|
+
plugins: EsbuildPlugin[];
|
|
54
|
+
};
|
|
20
55
|
};
|
|
21
|
-
declare function esbuildSourceTransformPlugin(options?: SourceInjectionOptions): EsbuildPlugin;
|
|
22
|
-
declare function createEsbuildSourceAdapter(options?: SourceInjectionOptions): SourceAdapterDescriptor<EsbuildSourceAdapterConfig, SourceInjectionOptions>;
|
|
23
|
-
declare const esbuildSourceAdapter: SourceAdapterDescriptor<EsbuildSourceAdapterConfig, SourceInjectionOptions>;
|
|
24
56
|
|
|
25
|
-
export { type EsbuildPlugin, type EsbuildSourceAdapterConfig, createEsbuildSourceAdapter, esbuildSourceAdapter, esbuildSourceTransformPlugin };
|
|
57
|
+
export { type EsbuildPlugin, type EsbuildSourceAdapterConfig, type EsbuildSourceAdapterOptions, createEsbuildSourceAdapter, esbuildSourceAdapter, esbuildSourceTransformPlugin };
|