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/unplugin.d.cts
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
2
|
import * as rollup from 'rollup';
|
|
3
|
+
import * as webpack from 'webpack';
|
|
3
4
|
import * as vite from 'vite';
|
|
4
5
|
import { UnpluginInstance } from 'unplugin';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Zero-dependency source transform using acorn
|
|
8
|
-
* No Babel required - pure JavaScript AST manipulation
|
|
9
|
-
*/
|
|
10
|
-
interface TransformOptions {
|
|
11
|
-
filename: string;
|
|
12
|
-
projectRoot?: string;
|
|
13
|
-
injectJsxSource?: boolean;
|
|
14
|
-
injectComponentSource?: boolean;
|
|
15
|
-
}
|
|
6
|
+
import { T as TransformOptions } from './transform-CXh-m5Ez.cjs';
|
|
16
7
|
|
|
17
8
|
interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
18
9
|
/**
|
|
@@ -44,9 +35,9 @@ interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
|
44
35
|
|
|
45
36
|
declare const unplugin: UnpluginInstance<ReactCodeLocatorOptions | undefined, false>;
|
|
46
37
|
declare const vitePlugin: (options?: ReactCodeLocatorOptions | undefined) => vite.Plugin<any>;
|
|
47
|
-
declare const webpackPlugin: (options?: ReactCodeLocatorOptions | undefined) => WebpackPluginInstance;
|
|
38
|
+
declare const webpackPlugin: (options?: ReactCodeLocatorOptions | undefined) => webpack.WebpackPluginInstance;
|
|
48
39
|
declare const rollupPlugin: (options?: ReactCodeLocatorOptions | undefined) => rollup.Plugin<any>;
|
|
49
40
|
declare const esbuildPlugin: (options?: ReactCodeLocatorOptions | undefined) => esbuild.Plugin;
|
|
50
41
|
declare const rspackPlugin: (options?: ReactCodeLocatorOptions | undefined) => RspackPluginInstance;
|
|
51
42
|
|
|
52
|
-
export { type ReactCodeLocatorOptions,
|
|
43
|
+
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin, webpackPlugin };
|
package/dist/unplugin.d.ts
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
2
|
import * as rollup from 'rollup';
|
|
3
|
+
import * as webpack from 'webpack';
|
|
3
4
|
import * as vite from 'vite';
|
|
4
5
|
import { UnpluginInstance } from 'unplugin';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Zero-dependency source transform using acorn
|
|
8
|
-
* No Babel required - pure JavaScript AST manipulation
|
|
9
|
-
*/
|
|
10
|
-
interface TransformOptions {
|
|
11
|
-
filename: string;
|
|
12
|
-
projectRoot?: string;
|
|
13
|
-
injectJsxSource?: boolean;
|
|
14
|
-
injectComponentSource?: boolean;
|
|
15
|
-
}
|
|
6
|
+
import { T as TransformOptions } from './transform-CXh-m5Ez.js';
|
|
16
7
|
|
|
17
8
|
interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
18
9
|
/**
|
|
@@ -44,9 +35,9 @@ interface ReactCodeLocatorOptions extends Omit<TransformOptions, 'filename'> {
|
|
|
44
35
|
|
|
45
36
|
declare const unplugin: UnpluginInstance<ReactCodeLocatorOptions | undefined, false>;
|
|
46
37
|
declare const vitePlugin: (options?: ReactCodeLocatorOptions | undefined) => vite.Plugin<any>;
|
|
47
|
-
declare const webpackPlugin: (options?: ReactCodeLocatorOptions | undefined) => WebpackPluginInstance;
|
|
38
|
+
declare const webpackPlugin: (options?: ReactCodeLocatorOptions | undefined) => webpack.WebpackPluginInstance;
|
|
48
39
|
declare const rollupPlugin: (options?: ReactCodeLocatorOptions | undefined) => rollup.Plugin<any>;
|
|
49
40
|
declare const esbuildPlugin: (options?: ReactCodeLocatorOptions | undefined) => esbuild.Plugin;
|
|
50
41
|
declare const rspackPlugin: (options?: ReactCodeLocatorOptions | undefined) => RspackPluginInstance;
|
|
51
42
|
|
|
52
|
-
export { type ReactCodeLocatorOptions,
|
|
43
|
+
export { type ReactCodeLocatorOptions, TransformOptions, unplugin as default, esbuildPlugin, rollupPlugin, rspackPlugin, unplugin, vitePlugin, webpackPlugin };
|