@hanzogui/babel-plugin 8.3.0 → 8.3.2

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/dist/cjs/index.js CHANGED
@@ -1,25 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var index_exports = {};
19
- __export(index_exports, {
20
- default: () => index_default
21
- });
22
- module.exports = __toCommonJS(index_exports);
23
- var import_static_sync = require("@hanzogui/static-sync");
24
- var index_default = (0, import_static_sync.getBabelPlugin)();
25
- //# sourceMappingURL=index.js.map
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const static_sync_1 = require("@hanzogui/static-sync");
4
+ exports.default = (0, static_sync_1.getBabelPlugin)();
5
+ //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA+B;AAG/B,IAAO,oBAAQ,mCAAe;",
5
- "names": []
6
- }
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;AAAA,uDAAsD;kBAGvC,IAAA,4BAAc,GAAwB"}
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/dist/esm/index.js CHANGED
@@ -1,4 +1,3 @@
1
- import { getBabelPlugin } from "@hanzogui/static-sync";
2
- var index_default = getBabelPlugin();
3
- export { index_default as default };
4
- //# sourceMappingURL=index.js.map
1
+ import { getBabelPlugin } from '@hanzogui/static-sync';
2
+ export default getBabelPlugin();
3
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getBabelPlugin","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,cAAA,QAAsB;AAG/B,IAAOC,aAAA,GAAQD,cAAA,CAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGtD,eAAe,cAAc,EAAwB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzogui/babel-plugin",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
5
5
  "license": "MIT",
6
6
  "source": "src/index.ts",
@@ -9,9 +9,22 @@
9
9
  "types",
10
10
  "dist"
11
11
  ],
12
- "main": "dist/cjs/index.js",
13
- "module": "dist/esm",
12
+ "type": "module",
13
+ "main": "./dist/cjs/index.js",
14
+ "module": "./dist/esm/index.js",
14
15
  "types": "./types/index.d.ts",
16
+ "exports": {
17
+ "./package.json": "./package.json",
18
+ ".": {
19
+ "types": "./types/index.d.ts",
20
+ "react-native": "./dist/esm/index.js",
21
+ "browser": "./dist/esm/index.js",
22
+ "module": "./dist/esm/index.js",
23
+ "import": "./dist/esm/index.js",
24
+ "require": "./dist/cjs/index.js",
25
+ "default": "./dist/esm/index.js"
26
+ }
27
+ },
15
28
  "publishConfig": {
16
29
  "access": "public"
17
30
  },
@@ -22,16 +35,16 @@
22
35
  "clean:build": "node ../../../node_modules/.bin/hanzogui-build clean:build"
23
36
  },
24
37
  "dependencies": {
25
- "@babel/core": "^7.25.2",
26
- "@babel/generator": "^7.25.5",
27
- "@babel/helper-plugin-utils": "^7.24.8",
28
- "@babel/template": "^7.25.0",
29
- "@babel/traverse": "^7.25.4",
30
- "@hanzogui/static-sync": "8.3.0"
38
+ "@babel/core": "^8.0.1",
39
+ "@babel/generator": "^8.0.0",
40
+ "@babel/helper-plugin-utils": "^8.0.1",
41
+ "@babel/template": "^8.0.0",
42
+ "@babel/traverse": "^8.0.4",
43
+ "@hanzogui/static-sync": "8.3.2"
31
44
  },
32
45
  "devDependencies": {
33
- "@babel/types": "^7.25.4",
34
- "@hanzogui/build": "8.3.0"
46
+ "@babel/types": "^8.0.4",
47
+ "@hanzogui/build": "8.3.2"
35
48
  },
36
49
  "repository": {
37
50
  "type": "git",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { getBabelPlugin } from '@hanzogui/static-sync'
2
- import type babel from '@babel/core'
2
+ import type * as babel from '@babel/core'
3
3
 
4
- export default getBabelPlugin() as babel.PluginObj
4
+ export default getBabelPlugin() as babel.PluginObject
package/types/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type babel from "@babel/core";
2
- declare const _default: babel.PluginObj;
1
+ import type * as babel from '@babel/core';
2
+ declare const _default: babel.PluginObject;
3
3
  export default _default;
4
-
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1 @@
1
- {
2
- "mappings": "AACA,YAAY,WAAW;AAEvB,wBAAmC,MAAM",
3
- "names": [],
4
- "sources": [
5
- "src/index.ts"
6
- ],
7
- "version": 3,
8
- "sourcesContent": [
9
- "import { getBabelPlugin } from '@hanzogui/static-sync'\nimport type babel from '@babel/core'\n\nexport default getBabelPlugin() as babel.PluginObj\n"
10
- ]
11
- }
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,aAAa,CAAA;wBAEN,KAAK,CAAC,YAAY"}
@@ -1,4 +0,0 @@
1
- import { getBabelPlugin } from "@hanzogui/static-sync";
2
- var index_default = getBabelPlugin();
3
- export { index_default as default };
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getBabelPlugin","index_default"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,cAAA,QAAsB;AAG/B,IAAOC,aAAA,GAAQD,cAAA,CAAe","ignoreList":[]}