react-code-locator 0.1.15 → 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.
- package/README.md +54 -0
- package/dist/core/transform-cjs.cjs +7014 -0
- package/dist/core/webpackPitchLoader-cjs.cjs +7032 -0
- 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/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 +7147 -0
- package/dist/unplugin.cjs.map +1 -0
- package/dist/unplugin.d.cts +41 -0
- package/dist/unplugin.d.ts +41 -0
- package/dist/unplugin.js +7118 -0
- package/dist/unplugin.js.map +1 -0
- 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/dist/webpack.cjs +85 -61
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.d.cts +55 -1
- package/dist/webpack.d.ts +55 -1
- package/dist/webpack.js +51 -71
- package/dist/webpack.js.map +1 -1
- package/dist/webpackLoader.cjs +7115 -0
- package/dist/webpackLoader.cjs.map +1 -0
- package/dist/webpackLoader.d.cts +15 -0
- package/dist/webpackLoader.d.ts +15 -0
- package/dist/webpackLoader.js +7092 -0
- package/dist/webpackLoader.js.map +1 -0
- package/package.json +26 -11
- 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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
import * as rollup from 'rollup';
|
|
3
|
+
import * as vite from 'vite';
|
|
4
|
+
import { UnpluginInstance } from 'unplugin';
|
|
5
|
+
import { T as TransformOptions } from './transform-CXh-m5Ez.cjs';
|
|
6
|
+
|
|
7
|
+
interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
8
|
+
/**
|
|
9
|
+
* Enable source transform for component definitions
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
injectComponentSource?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Enable source transform for JSX call sites
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
injectJsxSource?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Project root for relative path calculation
|
|
20
|
+
* @default process.cwd()
|
|
21
|
+
*/
|
|
22
|
+
projectRoot?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Include filter for file paths
|
|
25
|
+
* @default /\.[jt]sx$/
|
|
26
|
+
*/
|
|
27
|
+
include?: RegExp | RegExp[];
|
|
28
|
+
/**
|
|
29
|
+
* Exclude filter for file paths
|
|
30
|
+
* @default /node_modules/
|
|
31
|
+
*/
|
|
32
|
+
exclude?: RegExp | RegExp[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const unplugin: UnpluginInstance<ReactCodeLocatorOptions | undefined, false>;
|
|
36
|
+
declare const vitePlugin: (options?: ReactCodeLocatorOptions | undefined) => vite.Plugin<any>;
|
|
37
|
+
declare const rollupPlugin: (options?: ReactCodeLocatorOptions | undefined) => rollup.Plugin<any>;
|
|
38
|
+
declare const esbuildPlugin: (options?: ReactCodeLocatorOptions | undefined) => esbuild.Plugin;
|
|
39
|
+
declare const rspackPlugin: (options?: ReactCodeLocatorOptions | undefined) => RspackPluginInstance;
|
|
40
|
+
|
|
41
|
+
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as esbuild from 'esbuild';
|
|
2
|
+
import * as rollup from 'rollup';
|
|
3
|
+
import * as vite from 'vite';
|
|
4
|
+
import { UnpluginInstance } from 'unplugin';
|
|
5
|
+
import { T as TransformOptions } from './transform-CXh-m5Ez.js';
|
|
6
|
+
|
|
7
|
+
interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
8
|
+
/**
|
|
9
|
+
* Enable source transform for component definitions
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
injectComponentSource?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Enable source transform for JSX call sites
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
injectJsxSource?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Project root for relative path calculation
|
|
20
|
+
* @default process.cwd()
|
|
21
|
+
*/
|
|
22
|
+
projectRoot?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Include filter for file paths
|
|
25
|
+
* @default /\.[jt]sx$/
|
|
26
|
+
*/
|
|
27
|
+
include?: RegExp | RegExp[];
|
|
28
|
+
/**
|
|
29
|
+
* Exclude filter for file paths
|
|
30
|
+
* @default /node_modules/
|
|
31
|
+
*/
|
|
32
|
+
exclude?: RegExp | RegExp[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const unplugin: UnpluginInstance<ReactCodeLocatorOptions | undefined, false>;
|
|
36
|
+
declare const vitePlugin: (options?: ReactCodeLocatorOptions | undefined) => vite.Plugin<any>;
|
|
37
|
+
declare const rollupPlugin: (options?: ReactCodeLocatorOptions | undefined) => rollup.Plugin<any>;
|
|
38
|
+
declare const esbuildPlugin: (options?: ReactCodeLocatorOptions | undefined) => esbuild.Plugin;
|
|
39
|
+
declare const rspackPlugin: (options?: ReactCodeLocatorOptions | undefined) => RspackPluginInstance;
|
|
40
|
+
|
|
41
|
+
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin };
|