diff --git a/docs/index/functions/useWebViewMessage.md b/docs/index/functions/useWebViewMessage.md index 8c25ee2..3b3a903 100644 --- a/docs/index/functions/useWebViewMessage.md +++ b/docs/index/functions/useWebViewMessage.md @@ -50,4 +50,4 @@ A hook to subscribe messages from WebView. ## Defined in -[src/native/index.ts:28](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/native/index.ts#L28) +[src/native/index.ts:28](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/native/index.ts#L28) diff --git a/docs/index/interfaces/ReactNativeMessage.md b/docs/index/interfaces/ReactNativeMessage.md index 0076805..0905ac8 100644 --- a/docs/index/interfaces/ReactNativeMessage.md +++ b/docs/index/interfaces/ReactNativeMessage.md @@ -16,7 +16,7 @@ #### Defined in -[src/types.ts:7](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L7) +[src/types.ts:7](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/types.ts#L7) *** @@ -26,4 +26,4 @@ #### Defined in -[src/types.ts:8](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L8) +[src/types.ts:8](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/types.ts#L8) diff --git a/docs/index/interfaces/WebViewMessage.md b/docs/index/interfaces/WebViewMessage.md index 6922b56..4ae8478 100644 --- a/docs/index/interfaces/WebViewMessage.md +++ b/docs/index/interfaces/WebViewMessage.md @@ -16,7 +16,7 @@ #### Defined in -[src/types.ts:2](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L2) +[src/types.ts:2](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/types.ts#L2) *** @@ -26,4 +26,4 @@ #### Defined in -[src/types.ts:3](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/types.ts#L3) +[src/types.ts:3](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/types.ts#L3) diff --git a/docs/plugin/API.md b/docs/plugin/API.md index a55c6af..3af5e09 100644 --- a/docs/plugin/API.md +++ b/docs/plugin/API.md @@ -10,4 +10,5 @@ Custom babelTransformer for metro bundler ### Functions +- [createTransformer](functions/createTransformer.md) - [transform](functions/transform.md) diff --git a/docs/plugin/functions/createTransformer.md b/docs/plugin/functions/createTransformer.md new file mode 100644 index 0000000..9d52223 --- /dev/null +++ b/docs/plugin/functions/createTransformer.md @@ -0,0 +1,27 @@ +[**API**](../../API.md) • **Docs** + +*** + +# Function: createTransformer() + +> **createTransformer**(`esbuildOptions`): (`args`) => `Promise`\<`any`\> + +## Parameters + +• **esbuildOptions**: `Omit`\<`BuildOptions`, `"write"` \| `"entryPoints"` \| `"alias"`\> = `{}` + +## Returns + +`Function` + +### Parameters + +• **args**: `any` + +### Returns + +`Promise`\<`any`\> + +## Defined in + +[src/plugin/index.ts:35](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/plugin/index.ts#L35) diff --git a/docs/plugin/functions/transform.md b/docs/plugin/functions/transform.md index 282ce85..c2aba08 100644 --- a/docs/plugin/functions/transform.md +++ b/docs/plugin/functions/transform.md @@ -16,4 +16,4 @@ ## Defined in -[src/plugin/index.ts:34](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/plugin/index.ts#L34) +[src/plugin/index.ts:56](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/plugin/index.ts#L56) diff --git a/docs/web/preact/functions/useNativeMessage.md b/docs/web/preact/functions/useNativeMessage.md index 09e7224..bdb1d4d 100644 --- a/docs/web/preact/functions/useNativeMessage.md +++ b/docs/web/preact/functions/useNativeMessage.md @@ -22,4 +22,4 @@ A hook to subscribe messages from React Native. ## Defined in -[src/web/preact.ts:25](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/web/preact.ts#L25) +[src/web/preact.ts:25](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/web/preact.ts#L25) diff --git a/docs/web/preact/functions/webViewRender.md b/docs/web/preact/functions/webViewRender.md index 9748b6a..8c5136a 100644 --- a/docs/web/preact/functions/webViewRender.md +++ b/docs/web/preact/functions/webViewRender.md @@ -21,4 +21,4 @@ All dependencies are resolved, compressed and stringified into one file ## Defined in -[src/web/preact.ts:17](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/web/preact.ts#L17) +[src/web/preact.ts:17](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/web/preact.ts#L17) diff --git a/docs/web/react/functions/emit.md b/docs/web/react/functions/emit.md index 49506d6..2afef6f 100644 --- a/docs/web/react/functions/emit.md +++ b/docs/web/react/functions/emit.md @@ -22,4 +22,4 @@ A function to send a message to React Native ## Defined in -[src/web/core.ts:13](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/web/core.ts#L13) +[src/web/core.ts:13](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/web/core.ts#L13) diff --git a/docs/web/react/functions/useNativeMessage.md b/docs/web/react/functions/useNativeMessage.md index 5ff07cd..4dfb5a5 100644 --- a/docs/web/react/functions/useNativeMessage.md +++ b/docs/web/react/functions/useNativeMessage.md @@ -22,4 +22,4 @@ A hook to subscribe messages from React Native. ## Defined in -[src/web/react.ts:34](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/web/react.ts#L34) +[src/web/react.ts:34](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/web/react.ts#L34) diff --git a/docs/web/react/functions/webViewCreateRoot.md b/docs/web/react/functions/webViewCreateRoot.md index 724bec0..676cbde 100644 --- a/docs/web/react/functions/webViewCreateRoot.md +++ b/docs/web/react/functions/webViewCreateRoot.md @@ -18,4 +18,4 @@ ## Defined in -[src/web/react.ts:26](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/web/react.ts#L26) +[src/web/react.ts:26](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/web/react.ts#L26) diff --git a/docs/web/react/functions/webViewRender.md b/docs/web/react/functions/webViewRender.md index 988cbdd..3632b4a 100644 --- a/docs/web/react/functions/webViewRender.md +++ b/docs/web/react/functions/webViewRender.md @@ -21,4 +21,4 @@ All dependencies are resolved, compressed and stringified into one file ## Defined in -[src/web/react.ts:18](https://github.com/inokawa/react-native-react-bridge/blob/5ee94fe89bf5e5651d81f91c134d0e6639b5c7a5/src/web/react.ts#L18) +[src/web/react.ts:18](https://github.com/inokawa/react-native-react-bridge/blob/b0a8ef6e567676174800409d4b0075e0b9a19a45/src/web/react.ts#L18) diff --git a/package-lock.json b/package-lock.json index d79cd5b..93ab69e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-native-react-bridge", - "version": "0.12.1", + "version": "0.12.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "react-native-react-bridge", - "version": "0.12.1", + "version": "0.12.2", "license": "MIT", "dependencies": { "@babel/core": "7.25.2", diff --git a/package.json b/package.json index 208bef0..716e8f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-react-bridge", - "version": "0.12.1", + "version": "0.12.2", "description": "An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView.", "main": "lib/index.js", "module": "lib/index.mjs",