@modern-js/plugin-module-babel 2.11.0 → 2.12.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @modern-js/plugin-module-babel
2
2
 
3
+ ## 2.12.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f6641d0: fix(plugin-module-babel): export right name
8
+ fix(plugin-module-babel): 导出正确的模块名称
9
+ - 979b15f: chore: remove to module folder
10
+ chore: 移动至 module 文件夹
11
+ - Updated dependencies [af705fa]
12
+ - Updated dependencies [0baa168]
13
+ - Updated dependencies [1cdb379]
14
+ - Updated dependencies [3936535]
15
+ - Updated dependencies [8a3fbbd]
16
+ - Updated dependencies [8bc2d12]
17
+ - @modern-js/module-tools@2.12.0
18
+
3
19
  ## 2.11.0
4
20
 
5
21
  ### 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;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"]}
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.11.0",
14
+ "version": "2.12.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
- "@modern-js/module-tools": "2.11.0",
26
- "@scripts/jest-config": "2.11.0",
27
- "@scripts/build": "2.11.0"
25
+ "@modern-js/module-tools": "2.12.0",
26
+ "@scripts/build": "2.12.0",
27
+ "@scripts/jest-config": "2.12.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@modern-js/module-tools": "^2.11.0"
30
+ "@modern-js/module-tools": "^2.12.0"
31
31
  },
32
32
  "sideEffects": false,
33
33
  "publishConfig": {