@oxc-transform-react/binding-wasm32-wasi 0.144.0 → 0.147.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxc-transform-react/binding-wasm32-wasi",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.147.0",
|
|
4
4
|
"main": "transform-react.wasi.cjs",
|
|
5
5
|
"files": [
|
|
6
6
|
"transform-react.wasm32-wasi.wasm",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"browser": "transform-react.wasi-browser.js",
|
|
42
42
|
"type": "module",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@napi-rs/wasm-runtime": "~1.2.
|
|
44
|
+
"@napi-rs/wasm-runtime": "~1.2.3",
|
|
45
45
|
"@emnapi/core": "2.0.0-alpha.3",
|
|
46
46
|
"@emnapi/runtime": "2.0.0-alpha.3"
|
|
47
47
|
}
|
|
@@ -565,7 +565,7 @@ try {
|
|
|
565
565
|
} = await __emnapiInstantiateNapiModule(__wasmFile, {
|
|
566
566
|
context: __emnapiContext,
|
|
567
567
|
asyncWorkPoolSize: __asyncWorkPoolSize,
|
|
568
|
-
reuseWorker:
|
|
568
|
+
reuseWorker: false,
|
|
569
569
|
plugins: [__emnapiAsyncWorkPlugin, __emnapiTSFNPlugin],
|
|
570
570
|
wasi: __wasi,
|
|
571
571
|
onCreateWorker() {
|
|
@@ -153,6 +153,11 @@ export interface ReactCompilerEnvironmentOptions {
|
|
|
153
153
|
enableCustomTypeDefinitionForReanimated?: boolean
|
|
154
154
|
enableTreatRefLikeIdentifiersAsRefs?: boolean
|
|
155
155
|
enableTreatSetIdentifiersAsStateSetters?: boolean
|
|
156
|
+
/**
|
|
157
|
+
* Validate that `useMemo` callbacks return a value.
|
|
158
|
+
*
|
|
159
|
+
* @default false
|
|
160
|
+
*/
|
|
156
161
|
validateNoVoidUseMemo?: boolean
|
|
157
162
|
enableAllowSetStateFromRefsInEffects?: boolean
|
|
158
163
|
enableVerboseNoSetStateInEffect?: boolean
|
|
@@ -210,8 +215,9 @@ export interface ReactCompilerOptions {
|
|
|
210
215
|
/** Select client, SSR, or lint output. */
|
|
211
216
|
outputMode?: 'client' | 'ssr' | 'lint'
|
|
212
217
|
/**
|
|
213
|
-
* ESLint rule names whose suppressions opt a function out of compilation
|
|
214
|
-
*
|
|
218
|
+
* ESLint rule names whose suppressions opt a function out of compilation.
|
|
219
|
+
* Defaults to `react-hooks/exhaustive-deps` and `react-hooks/rules-of-hooks`;
|
|
220
|
+
* pass an empty array to disable this behavior.
|
|
215
221
|
*/
|
|
216
222
|
eslintSuppressionRules?: Array<string>
|
|
217
223
|
/**
|
|
@@ -231,6 +237,9 @@ export interface ReactCompilerOptions {
|
|
|
231
237
|
/**
|
|
232
238
|
* Only run the React Compiler when the filename contains one of these strings.
|
|
233
239
|
*
|
|
240
|
+
* By default, files whose filename contains `node_modules` are skipped.
|
|
241
|
+
* Providing this option replaces that default filter.
|
|
242
|
+
*
|
|
234
243
|
* Function-valued `sources` filters from the Babel plugin are intentionally
|
|
235
244
|
* unsupported across the native boundary.
|
|
236
245
|
*/
|
|
Binary file
|