react-code-locator 0.1.17 → 0.2.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/README.md +89 -266
- package/dist/client.cjs +1 -399
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -371
- package/dist/client.js.map +1 -1
- package/dist/esbuild.cjs +29 -7149
- package/dist/esbuild.cjs.map +1 -1
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +29 -7122
- package/dist/esbuild.js.map +1 -1
- package/dist/index.cjs +42 -398
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +42 -370
- package/dist/index.js.map +1 -1
- package/dist/swc.cjs +29 -7119
- package/dist/swc.cjs.map +1 -1
- package/dist/swc.d.cts +1 -1
- package/dist/swc.d.ts +1 -1
- package/dist/swc.js +29 -7090
- package/dist/swc.js.map +1 -1
- package/dist/{transform-CXh-m5Ez.d.cts → transform-z2n_1yc5.d.cts} +2 -2
- package/dist/{transform-CXh-m5Ez.d.ts → transform-z2n_1yc5.d.ts} +2 -2
- package/dist/unplugin.cjs +32 -7135
- package/dist/unplugin.cjs.map +1 -1
- package/dist/unplugin.d.cts +16 -5
- package/dist/unplugin.d.ts +16 -5
- package/dist/unplugin.js +32 -7106
- package/dist/unplugin.js.map +1 -1
- package/dist/webpack.cjs +36 -88
- package/dist/webpack.cjs.map +1 -1
- package/dist/webpack.d.cts +11 -51
- package/dist/webpack.d.ts +11 -51
- package/dist/webpack.js +36 -58
- package/dist/webpack.js.map +1 -1
- package/package.json +10 -34
- package/dist/core/transform-cjs.cjs +0 -7014
- package/dist/core/webpackPitchLoader-cjs.cjs +0 -7032
- package/dist/vite.cjs +0 -7200
- package/dist/vite.cjs.map +0 -1
- package/dist/vite.d.cts +0 -52
- package/dist/vite.d.ts +0 -52
- package/dist/vite.js +0 -7169
- package/dist/vite.js.map +0 -1
- package/dist/webpackLoader.cjs +0 -7115
- package/dist/webpackLoader.cjs.map +0 -1
- package/dist/webpackLoader.d.cts +0 -15
- package/dist/webpackLoader.d.ts +0 -15
- package/dist/webpackLoader.js +0 -7092
- package/dist/webpackLoader.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/unplugin.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { LocatorOptions } from './client.cjs';
|
|
1
2
|
import * as esbuild from 'esbuild';
|
|
2
3
|
import * as rollup from 'rollup';
|
|
3
|
-
import * as vite from 'vite';
|
|
4
4
|
import { UnpluginInstance } from 'unplugin';
|
|
5
|
-
import { T as TransformOptions } from './transform-
|
|
5
|
+
import { T as TransformOptions } from './transform-z2n_1yc5.cjs';
|
|
6
|
+
import { Plugin } from 'vite';
|
|
6
7
|
|
|
7
|
-
interface ReactCodeLocatorOptions extends Omit<TransformOptions,
|
|
8
|
+
interface ReactCodeLocatorOptions extends Omit<TransformOptions, "filename"> {
|
|
8
9
|
/**
|
|
9
10
|
* Enable source transform for component definitions
|
|
10
11
|
* @default true
|
|
@@ -30,12 +31,22 @@ interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
|
30
31
|
* @default /node_modules/
|
|
31
32
|
*/
|
|
32
33
|
exclude?: RegExp | RegExp[];
|
|
34
|
+
/**
|
|
35
|
+
* Auto-inject client runtime into Vite dev server (Vite only)
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
injectClient?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Options passed to enableReactComponentJump (Vite only)
|
|
41
|
+
*/
|
|
42
|
+
locator?: LocatorOptions;
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
declare const unplugin: UnpluginInstance<ReactCodeLocatorOptions | undefined, false>;
|
|
36
|
-
declare
|
|
46
|
+
declare function vitePlugin(options?: ReactCodeLocatorOptions): Plugin[];
|
|
47
|
+
declare const webpackPlugin: (options?: ReactCodeLocatorOptions | undefined) => WebpackPluginInstance;
|
|
37
48
|
declare const rollupPlugin: (options?: ReactCodeLocatorOptions | undefined) => rollup.Plugin<any>;
|
|
38
49
|
declare const esbuildPlugin: (options?: ReactCodeLocatorOptions | undefined) => esbuild.Plugin;
|
|
39
50
|
declare const rspackPlugin: (options?: ReactCodeLocatorOptions | undefined) => RspackPluginInstance;
|
|
40
51
|
|
|
41
|
-
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin };
|
|
52
|
+
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin, webpackPlugin };
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { LocatorOptions } from './client.js';
|
|
1
2
|
import * as esbuild from 'esbuild';
|
|
2
3
|
import * as rollup from 'rollup';
|
|
3
|
-
import * as vite from 'vite';
|
|
4
4
|
import { UnpluginInstance } from 'unplugin';
|
|
5
|
-
import { T as TransformOptions } from './transform-
|
|
5
|
+
import { T as TransformOptions } from './transform-z2n_1yc5.js';
|
|
6
|
+
import { Plugin } from 'vite';
|
|
6
7
|
|
|
7
|
-
interface ReactCodeLocatorOptions extends Omit<TransformOptions,
|
|
8
|
+
interface ReactCodeLocatorOptions extends Omit<TransformOptions, "filename"> {
|
|
8
9
|
/**
|
|
9
10
|
* Enable source transform for component definitions
|
|
10
11
|
* @default true
|
|
@@ -30,12 +31,22 @@ interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
|
30
31
|
* @default /node_modules/
|
|
31
32
|
*/
|
|
32
33
|
exclude?: RegExp | RegExp[];
|
|
34
|
+
/**
|
|
35
|
+
* Auto-inject client runtime into Vite dev server (Vite only)
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
injectClient?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Options passed to enableReactComponentJump (Vite only)
|
|
41
|
+
*/
|
|
42
|
+
locator?: LocatorOptions;
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
declare const unplugin: UnpluginInstance<ReactCodeLocatorOptions | undefined, false>;
|
|
36
|
-
declare
|
|
46
|
+
declare function vitePlugin(options?: ReactCodeLocatorOptions): Plugin[];
|
|
47
|
+
declare const webpackPlugin: (options?: ReactCodeLocatorOptions | undefined) => WebpackPluginInstance;
|
|
37
48
|
declare const rollupPlugin: (options?: ReactCodeLocatorOptions | undefined) => rollup.Plugin<any>;
|
|
38
49
|
declare const esbuildPlugin: (options?: ReactCodeLocatorOptions | undefined) => esbuild.Plugin;
|
|
39
50
|
declare const rspackPlugin: (options?: ReactCodeLocatorOptions | undefined) => RspackPluginInstance;
|
|
40
51
|
|
|
41
|
-
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin };
|
|
52
|
+
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin, webpackPlugin };
|