babel-plugin-hylid-bridge 2.12.0-alpha.3 → 2.12.0-alpha.4
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/CHANGELOG.md +9 -0
- package/package.json +2 -2
- package/lib/test/inedx.spec.d.ts +0 -1
- package/lib/test/inedx.spec.js +0 -45
- package/lib/test/template/user-clients/mp/alipay/index.d.ts +0 -4
- package/lib/test/template/user-clients/mp/alipay/index.js +0 -12
- /package/lib/{src/combineExports.d.ts → combineExports.d.ts} +0 -0
- /package/lib/{src/combineExports.js → combineExports.js} +0 -0
- /package/lib/{src/getLibraryDir.d.ts → getLibraryDir.d.ts} +0 -0
- /package/lib/{src/getLibraryDir.js → getLibraryDir.js} +0 -0
- /package/lib/{src/index.d.ts → index.d.ts} +0 -0
- /package/lib/{src/index.js → index.js} +0 -0
- /package/lib/{src/utils.d.ts → utils.d.ts} +0 -0
- /package/lib/{src/utils.js → utils.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.12.0-alpha.4] (2023-07-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 指定编译 src 目录
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [2.12.0-alpha.3] (2023-07-20)
|
|
7
16
|
|
|
8
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-plugin-hylid-bridge",
|
|
3
|
-
"version": "2.12.0-alpha.
|
|
3
|
+
"version": "2.12.0-alpha.4",
|
|
4
4
|
"description": "babel-plugin-hylid-bridge",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"babel-plugin-tester": "^10.1.0",
|
|
24
|
-
"hylid-bridge": "^2.12.0-alpha.
|
|
24
|
+
"hylid-bridge": "^2.12.0-alpha.4"
|
|
25
25
|
},
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"registry": "https://registry.npmjs.org/"
|
package/lib/test/inedx.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/test/inedx.spec.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _path = _interopRequireDefault(require("path"));
|
|
5
|
-
var _babelPluginTester = _interopRequireDefault(require("babel-plugin-tester"));
|
|
6
|
-
var _src = _interopRequireDefault(require("../src"));
|
|
7
|
-
(0, _babelPluginTester.default)({
|
|
8
|
-
plugin: _src.default,
|
|
9
|
-
pluginName: 'babel-plugin-hylid-bridge',
|
|
10
|
-
pluginOptions: {
|
|
11
|
-
targets: ['WebH5', 'MpAlipay'],
|
|
12
|
-
libraryDir: _path.default.dirname(require.resolve('hylid-bridge/package.json'))
|
|
13
|
-
},
|
|
14
|
-
snapshot: true,
|
|
15
|
-
tests: [{
|
|
16
|
-
title: 'should transform the alert.',
|
|
17
|
-
code: 'my.alert()'
|
|
18
|
-
}, {
|
|
19
|
-
title: 'should transform the string literal rpc.',
|
|
20
|
-
code: "my['rpc']()"
|
|
21
|
-
}]
|
|
22
|
-
});
|
|
23
|
-
(0, _babelPluginTester.default)({
|
|
24
|
-
plugin: _src.default,
|
|
25
|
-
pluginName: 'babel-plugin-hylid-bridge',
|
|
26
|
-
pluginOptions: {
|
|
27
|
-
targets: ['MpAlipay'],
|
|
28
|
-
libraryDir: _path.default.dirname(require.resolve('hylid-bridge/package.json')),
|
|
29
|
-
polyfillDir: _path.default.resolve(__dirname, './template/user-clients')
|
|
30
|
-
},
|
|
31
|
-
snapshot: true,
|
|
32
|
-
tests: [{
|
|
33
|
-
title: 'should use the custom alert.',
|
|
34
|
-
code: 'my.alert()'
|
|
35
|
-
}, {
|
|
36
|
-
title: 'should use the inner rpc',
|
|
37
|
-
code: 'my.rpc()'
|
|
38
|
-
}, {
|
|
39
|
-
title: 'should use the combined entry index.',
|
|
40
|
-
code: "my[a]();"
|
|
41
|
-
}],
|
|
42
|
-
formatResult: function formatResult(code) {
|
|
43
|
-
return code.replace(_path.default.resolve(__dirname, '../../../'), '');
|
|
44
|
-
}
|
|
45
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = void 0;
|
|
8
|
-
var _alert = _interopRequireDefault(require("./alert"));
|
|
9
|
-
var _default = {
|
|
10
|
-
alert: _alert.default
|
|
11
|
-
};
|
|
12
|
-
exports.default = _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|