@modern-js/plugin-module-babel 2.11.0 → 2.13.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 +26 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @modern-js/plugin-module-babel
|
|
2
2
|
|
|
3
|
+
## 2.13.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [034f36b]
|
|
8
|
+
- Updated dependencies [88faab3]
|
|
9
|
+
- Updated dependencies [034f36b]
|
|
10
|
+
- Updated dependencies [79bc089]
|
|
11
|
+
- @modern-js/module-tools@2.13.0
|
|
12
|
+
|
|
13
|
+
## 2.12.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- f6641d0: fix(plugin-module-babel): export right name
|
|
18
|
+
fix(plugin-module-babel): 导出正确的模块名称
|
|
19
|
+
- 979b15f: chore: remove to module folder
|
|
20
|
+
chore: 移动至 module 文件夹
|
|
21
|
+
- Updated dependencies [af705fa]
|
|
22
|
+
- Updated dependencies [0baa168]
|
|
23
|
+
- Updated dependencies [1cdb379]
|
|
24
|
+
- Updated dependencies [3936535]
|
|
25
|
+
- Updated dependencies [8a3fbbd]
|
|
26
|
+
- Updated dependencies [8bc2d12]
|
|
27
|
+
- @modern-js/module-tools@2.12.0
|
|
28
|
+
|
|
3
29
|
## 2.11.0
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ import { babelPlugin } from '@modern-js/libuild-plugin-babel';
|
|
|
4
4
|
type Options = typeof babelPlugin extends (arg1: infer P) => void ? P : never;
|
|
5
5
|
declare const ModulePluginBabel: (options?: Options) => CliPlugin<ModuleTools>;
|
|
6
6
|
|
|
7
|
-
export { ModulePluginBabel, Options };
|
|
7
|
+
export { ModulePluginBabel, Options, ModulePluginBabel as modulePluginBabel };
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,8 @@ 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: () => 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");
|
|
@@ -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;
|
|
1
|
+
{"version":3,"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kCAA4B;AAOrB,IAAM,oBAAoB,CAC/B,aAC4B;AAAA,EAC5B,MAAM;AAAA,EACN,OAAO,OAAO;AAAA,IACZ,cAAc,QAAQ;AAb1B;AAcM,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\n// deprecated export name\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\n// right export name\nexport { ModulePluginBabel as modulePluginBabel };\n"]}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.13.0",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"dependencies": {
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@types/node": "^14",
|
|
23
23
|
"typescript": "^4",
|
|
24
24
|
"jest": "^29",
|
|
25
|
-
"@
|
|
26
|
-
"@scripts/jest-config": "2.
|
|
27
|
-
"@
|
|
25
|
+
"@scripts/build": "2.13.0",
|
|
26
|
+
"@scripts/jest-config": "2.13.0",
|
|
27
|
+
"@modern-js/module-tools": "2.13.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@modern-js/module-tools": "^2.
|
|
30
|
+
"@modern-js/module-tools": "^2.13.0"
|
|
31
31
|
},
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"publishConfig": {
|