babel-plugin-transform-taroapi 4.0.0-canary.8 → 4.0.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/LICENSE +17 -3
- package/__tests__/index.spec.ts +1 -1
- package/babel.config.json +1 -2
- package/package.json +16 -10
package/LICENSE
CHANGED
|
@@ -154,7 +154,21 @@ See `/LICENSE` for details of the license.
|
|
|
154
154
|
|
|
155
155
|
==================
|
|
156
156
|
|
|
157
|
-
MIT (
|
|
158
|
-
The following files embed [
|
|
159
|
-
`/packages/taro-components
|
|
157
|
+
MIT (weui):
|
|
158
|
+
The following files embed [weui](https://github.com/Tencent/weui) MIT:
|
|
159
|
+
`/packages/taro-components/src/components/*.scss`
|
|
160
|
+
See `/LICENSE.txt` for details of the license.
|
|
161
|
+
|
|
162
|
+
==================
|
|
163
|
+
|
|
164
|
+
Apache-2.0 (intersection-observer):
|
|
165
|
+
The following files embed [intersection-observer](https://github.com/GoogleChromeLabs/intersection-observer) Apache-2.0:
|
|
166
|
+
`/packages/taro-api/src/polyfill/intersection-observer.ts`
|
|
167
|
+
See `/LICENSE.txt` for details of the license.
|
|
168
|
+
|
|
169
|
+
==================
|
|
170
|
+
|
|
171
|
+
MIT (babel-plugin-jsx-dom-expressions):
|
|
172
|
+
The following files embed [babel-plugin-jsx-dom-expressions](https://github.com/ryansolid/dom-expressions/blob/main/packages/babel-plugin-jsx-dom-expressions) MIT:
|
|
173
|
+
`/packages/babel-plugin-transform-solid-jsx/src/*`
|
|
160
174
|
See `/LICENSE` for details of the license.
|
package/__tests__/index.spec.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as babel from '@babel/core'
|
|
2
2
|
import * as t from '@babel/types'
|
|
3
|
-
import * as definition from '@tarojs/plugin-platform-h5/dist/definition.json'
|
|
4
3
|
|
|
4
|
+
import * as definition from '../../taro-platform-h5/dist/definition.json'
|
|
5
5
|
import plugin from '../src'
|
|
6
6
|
|
|
7
7
|
type ImportType = babel.types.ImportSpecifier | babel.types.ImportDefaultSpecifier | babel.types.ImportNamespaceSpecifier
|
package/babel.config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-transform-taroapi",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"author": "O2Team",
|
|
5
|
+
"license": "MIT",
|
|
4
6
|
"main": "dist/index.js",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">= 18"
|
|
9
|
+
},
|
|
5
10
|
"dependencies": {
|
|
6
11
|
"lodash": "^4.17.21"
|
|
7
12
|
},
|
|
8
13
|
"devDependencies": {
|
|
9
|
-
"@babel/core": "
|
|
10
|
-
"@babel/types": "
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"typescript": "^4.7.4"
|
|
14
|
+
"@babel/core": "7.24.4",
|
|
15
|
+
"@babel/types": "7.24.0",
|
|
16
|
+
"@types/babel__core": "7.20.5"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"@babel/core": "^7.0.0"
|
|
16
20
|
},
|
|
17
|
-
"license": "MIT",
|
|
18
21
|
"scripts": {
|
|
22
|
+
"prod": "pnpm run build",
|
|
23
|
+
"prebuild": "pnpm run clean",
|
|
24
|
+
"clean": "rimraf --impl=move-remove ./dist",
|
|
19
25
|
"build": "tsc",
|
|
20
26
|
"test": "cross-env NODE_ENV=jest jest",
|
|
21
|
-
"test:ci": "cross-env NODE_ENV=jest jest --ci -i",
|
|
27
|
+
"test:ci": "cross-env NODE_ENV=jest jest --ci -i --coverage --silent",
|
|
22
28
|
"test:dev": "cross-env NODE_ENV=jest jest --watch",
|
|
23
29
|
"test:coverage": "cross-env NODE_ENV=jest jest --coverage",
|
|
24
30
|
"updateSnapshot": "cross-env NODE_ENV=jest jest --updateSnapshot"
|