react-code-locator 0.1.16 → 0.1.17

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.
Files changed (55) hide show
  1. package/dist/core/transform-cjs.cjs +7014 -0
  2. package/dist/core/webpackPitchLoader-cjs.cjs +7032 -0
  3. package/dist/esbuild.cjs +7025 -295
  4. package/dist/esbuild.cjs.map +1 -1
  5. package/dist/esbuild.d.cts +38 -6
  6. package/dist/esbuild.d.ts +38 -6
  7. package/dist/esbuild.js +7025 -295
  8. package/dist/esbuild.js.map +1 -1
  9. package/dist/swc.cjs +7020 -293
  10. package/dist/swc.cjs.map +1 -1
  11. package/dist/swc.d.cts +43 -19
  12. package/dist/swc.d.ts +43 -19
  13. package/dist/swc.js +7020 -293
  14. package/dist/swc.js.map +1 -1
  15. package/dist/transform-CXh-m5Ez.d.cts +12 -0
  16. package/dist/transform-CXh-m5Ez.d.ts +12 -0
  17. package/dist/unplugin.cjs +6852 -13
  18. package/dist/unplugin.cjs.map +1 -1
  19. package/dist/unplugin.d.cts +2 -13
  20. package/dist/unplugin.d.ts +2 -13
  21. package/dist/unplugin.js +6849 -9
  22. package/dist/unplugin.js.map +1 -1
  23. package/dist/vite.cjs +7029 -304
  24. package/dist/vite.cjs.map +1 -1
  25. package/dist/vite.d.cts +39 -14
  26. package/dist/vite.d.ts +39 -14
  27. package/dist/vite.js +7029 -303
  28. package/dist/vite.js.map +1 -1
  29. package/dist/webpack.cjs +85 -61
  30. package/dist/webpack.cjs.map +1 -1
  31. package/dist/webpack.d.cts +55 -1
  32. package/dist/webpack.d.ts +55 -1
  33. package/dist/webpack.js +51 -71
  34. package/dist/webpack.js.map +1 -1
  35. package/dist/webpackLoader.cjs +7115 -0
  36. package/dist/webpackLoader.cjs.map +1 -0
  37. package/dist/webpackLoader.d.cts +15 -0
  38. package/dist/webpackLoader.d.ts +15 -0
  39. package/dist/webpackLoader.js +7092 -0
  40. package/dist/webpackLoader.js.map +1 -0
  41. package/package.json +17 -28
  42. package/dist/babel.cjs +0 -370
  43. package/dist/babel.cjs.map +0 -1
  44. package/dist/babel.d.cts +0 -13
  45. package/dist/babel.d.ts +0 -13
  46. package/dist/babel.js +0 -341
  47. package/dist/babel.js.map +0 -1
  48. package/dist/babelInjectComponentSource.cjs +0 -342
  49. package/dist/babelInjectComponentSource.cjs.map +0 -1
  50. package/dist/babelInjectComponentSource.d.cts +0 -15
  51. package/dist/babelInjectComponentSource.d.ts +0 -15
  52. package/dist/babelInjectComponentSource.js +0 -317
  53. package/dist/babelInjectComponentSource.js.map +0 -1
  54. package/dist/sourceAdapter-dPr5CgLi.d.cts +0 -14
  55. package/dist/sourceAdapter-dPr5CgLi.d.ts +0 -14
@@ -1,4 +1,9 @@
1
- import { a as SourceInjectionOptions, S as SourceAdapterDescriptor } from './sourceAdapter-dPr5CgLi.cjs';
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
- type EsbuildSourceAdapterConfig = {
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 { a as SourceInjectionOptions, S as SourceAdapterDescriptor } from './sourceAdapter-dPr5CgLi.js';
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
- type EsbuildSourceAdapterConfig = {
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 };