@modern-js/plugin-module-babel 2.9.0 → 2.11.0-beta.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/CHANGELOG.md +18 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @modern-js/plugin-module-babel
|
|
2
2
|
|
|
3
|
+
## 2.11.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [aa0a312]
|
|
8
|
+
- Updated dependencies [6118636]
|
|
9
|
+
- Updated dependencies [f1b2629]
|
|
10
|
+
- @modern-js/module-tools@2.11.0
|
|
11
|
+
|
|
12
|
+
## 2.10.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 0da32d0: chore: upgrade jest and puppeteer
|
|
17
|
+
chore: 升级 jest 和 puppeteer 到 latest
|
|
18
|
+
- Updated dependencies [0da32d0]
|
|
19
|
+
- @modern-js/module-tools@2.10.0
|
|
20
|
+
|
|
3
21
|
## 2.9.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import { CliPlugin, ModuleTools } from '@modern-js/module-tools';
|
|
|
2
2
|
import { babelPlugin } from '@modern-js/libuild-plugin-babel';
|
|
3
3
|
|
|
4
4
|
type Options = typeof babelPlugin extends (arg1: infer P) => void ? P : never;
|
|
5
|
-
declare const
|
|
5
|
+
declare const modulePluginBabel: (options?: Options) => CliPlugin<ModuleTools>;
|
|
6
6
|
|
|
7
|
-
export { ModulePluginBabel, Options };
|
|
7
|
+
export { modulePluginBabel as ModulePluginBabel, Options, modulePluginBabel };
|
package/dist/index.js
CHANGED
|
@@ -19,11 +19,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
var src_exports = {};
|
|
21
21
|
__export(src_exports, {
|
|
22
|
-
ModulePluginBabel: () =>
|
|
22
|
+
ModulePluginBabel: () => modulePluginBabel,
|
|
23
|
+
modulePluginBabel: () => modulePluginBabel
|
|
23
24
|
});
|
|
24
25
|
module.exports = __toCommonJS(src_exports);
|
|
25
26
|
var import_libuild_plugin_babel = require("@modern-js/libuild-plugin-babel");
|
|
26
|
-
var
|
|
27
|
+
var modulePluginBabel = (options) => ({
|
|
27
28
|
name: "babel-plugin",
|
|
28
29
|
setup: () => ({
|
|
29
30
|
modifyLibuild(config) {
|
|
@@ -35,7 +36,8 @@ var ModulePluginBabel = (options) => ({
|
|
|
35
36
|
});
|
|
36
37
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
38
|
0 && (module.exports = {
|
|
38
|
-
ModulePluginBabel
|
|
39
|
+
ModulePluginBabel,
|
|
40
|
+
modulePluginBabel
|
|
39
41
|
});
|
|
40
42
|
|
|
41
43
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kCAA4B;AAMrB,IAAM,oBAAoB,CAC/B,aAC4B;AAAA,EAC5B,MAAM;AAAA,EACN,OAAO,OAAO;AAAA,IACZ,cAAc,QAAQ;AAZ1B;AAaM,mBAAO,YAAP,mBAAgB,YAAQ,yCAAY,4BAAW,CAAC,CAAC;AACjD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CliPlugin, ModuleTools } from '@modern-js/module-tools';\nimport { babelPlugin } from '@modern-js/libuild-plugin-babel';\n\nexport type Options = typeof babelPlugin extends (arg1: infer P) => void\n ? P\n : never;\n\nexport const
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kCAA4B;AAMrB,IAAM,oBAAoB,CAC/B,aAC4B;AAAA,EAC5B,MAAM;AAAA,EACN,OAAO,OAAO;AAAA,IACZ,cAAc,QAAQ;AAZ1B;AAaM,mBAAO,YAAP,mBAAgB,YAAQ,yCAAY,4BAAW,CAAC,CAAC;AACjD,aAAO;AAAA,IACT;AAAA,EACF;AACF;","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { CliPlugin, ModuleTools } from '@modern-js/module-tools';\nimport { babelPlugin } from '@modern-js/libuild-plugin-babel';\n\nexport type Options = typeof babelPlugin extends (arg1: infer P) => void\n ? P\n : never;\n\nexport const modulePluginBabel = (\n options?: Options,\n): CliPlugin<ModuleTools> => ({\n name: 'babel-plugin',\n setup: () => ({\n modifyLibuild(config) {\n config.plugins?.unshift(babelPlugin(options ?? {}));\n return config;\n },\n }),\n});\n\nexport { modulePluginBabel as ModulePluginBabel };\n"]}
|
package/package.json
CHANGED
|
@@ -11,23 +11,23 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.11.0-beta.0",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@modern-js/libuild-plugin-babel": "0.7.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/jest": "^
|
|
21
|
+
"@types/jest": "^29",
|
|
22
22
|
"@types/node": "^14",
|
|
23
23
|
"typescript": "^4",
|
|
24
|
-
"jest": "^
|
|
25
|
-
"@
|
|
26
|
-
"@scripts/
|
|
27
|
-
"@
|
|
24
|
+
"jest": "^29",
|
|
25
|
+
"@modern-js/module-tools": "2.11.0",
|
|
26
|
+
"@scripts/build": "2.11.0",
|
|
27
|
+
"@scripts/jest-config": "2.11.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@modern-js/module-tools": "^2.
|
|
30
|
+
"@modern-js/module-tools": "^2.11.0"
|
|
31
31
|
},
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"publishConfig": {
|