@vxrn/vite-plugin-metro 2.6.4 → 2.6.5
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": "@vxrn/vite-plugin-metro",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"@oxc-project/runtime": "^0.112.0",
|
|
75
75
|
"@react-native/babel-preset": "^0.87.1",
|
|
76
76
|
"@react-native/metro-config": "^0.87.1",
|
|
77
|
-
"@vxrn/compiler": "2.6.
|
|
78
|
-
"@vxrn/debug": "2.6.
|
|
79
|
-
"@vxrn/utils": "2.6.
|
|
77
|
+
"@vxrn/compiler": "2.6.5",
|
|
78
|
+
"@vxrn/debug": "2.6.5",
|
|
79
|
+
"@vxrn/utils": "2.6.5",
|
|
80
80
|
"esbuild": "^0.25.12",
|
|
81
81
|
"flow-parser": "^0.331.0",
|
|
82
82
|
"launch-editor": "^2.10.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
104
|
},
|
|
105
|
-
"releaseSourceCommit": "
|
|
105
|
+
"releaseSourceCommit": "97c5295fca304e7fc443ed228f087c51dc63bc69",
|
|
106
106
|
"repository": {
|
|
107
107
|
"type": "git",
|
|
108
108
|
"url": "git+https://github.com/onejs/one.git",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
2
|
import { fileURLToPath } from 'node:url'
|
|
3
3
|
import vm from 'node:vm'
|
|
4
|
-
import { describe, expect, it } from 'vitest'
|
|
4
|
+
import { beforeAll, describe, expect, it } from 'vitest'
|
|
5
5
|
|
|
6
6
|
import { transformFromAstSync } from './babel-core'
|
|
7
7
|
// @ts-expect-error: module.exports = has no default export in types, runtime interop provides it
|
|
@@ -84,6 +84,12 @@ const noRequire = () => {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
describe('babel-transformer optional expo virtual env', () => {
|
|
87
|
+
// the first transform pays babel's one-time plugin loading (~300ms local,
|
|
88
|
+
// past 5s on a loaded ci runner); keep it out of the behavior under test
|
|
89
|
+
beforeAll(() => {
|
|
90
|
+
runBabelTransform(virtualSource, virtualFilename, true)
|
|
91
|
+
})
|
|
92
|
+
|
|
87
93
|
it('merges .env files over process.env in dev like upstream', () => {
|
|
88
94
|
const result = runBabelTransform(virtualSource, virtualFilename, true)
|
|
89
95
|
expect(result.ast).toBeTruthy()
|