mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-10-09 14:35:51 +08:00
feat!: require node 20.19, drop cjs build
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
declare function transformOn(
|
||||
obj: Record<string, any>
|
||||
): Record<`on${string}`, any>;
|
||||
export = transformOn;
|
||||
|
||||
export { transformOn as default, transformOn as 'module.exports' };
|
@@ -1,9 +1,9 @@
|
||||
const transformOn = (obj) => {
|
||||
function transformOn(obj) {
|
||||
const result = {};
|
||||
Object.keys(obj).forEach((evt) => {
|
||||
result[`on${evt[0].toUpperCase()}${evt.slice(1)}`] = obj[evt];
|
||||
});
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = transformOn;
|
||||
export { transformOn as default, transformOn as 'module.exports' };
|
@@ -1,14 +1,17 @@
|
||||
{
|
||||
"name": "@vue/babel-helper-vue-transform-on",
|
||||
"version": "1.5.0",
|
||||
"type": "commonjs",
|
||||
"type": "module",
|
||||
"description": "to help transform on",
|
||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
"exports": {
|
||||
".": "./index.mjs",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git"
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
|
||||
"directory": "packages/babel-helper-vue-transform-on"
|
||||
}
|
||||
}
|
||||
|
@@ -5,20 +5,18 @@
|
||||
"author": "Amour1688 <lcz_1996@foxmail.com>",
|
||||
"homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-jsx#readme",
|
||||
"license": "MIT",
|
||||
"type": "commonjs",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"main": "./dist/index.mjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
"./*": "./*"
|
||||
".": "./dist/index.mjs",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git"
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
|
||||
"directory": "packages/babel-plugin-jsx"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
|
||||
|
@@ -203,3 +203,4 @@ const plugin: (
|
||||
});
|
||||
|
||||
export default plugin;
|
||||
export { plugin as 'module.exports' };
|
||||
|
@@ -2,34 +2,22 @@
|
||||
"name": "@vue/babel-plugin-resolve-type",
|
||||
"version": "1.5.0",
|
||||
"description": "Babel plugin for resolving Vue types.",
|
||||
"author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
|
||||
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
||||
"funding": "https://github.com/sponsors/sxzz",
|
||||
"homepage": "https://github.com/vuejs/babel-plugin-jsx/tree/dev/packages/babel-plugin-resolve-type#readme",
|
||||
"license": "MIT",
|
||||
"type": "commonjs",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"type": "module",
|
||||
"main": "./dist/index.mjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"exports": {
|
||||
".": {
|
||||
"dev": "./src/index.ts",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
".": "./dist/index.mjs",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git"
|
||||
},
|
||||
"publishConfig": {
|
||||
"exports": {
|
||||
".": {
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
}
|
||||
"url": "git+https://github.com/vuejs/babel-plugin-jsx.git",
|
||||
"directory": "packages/babel-plugin-resolve-type"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/babel-plugin-jsx/issues"
|
||||
|
@@ -324,3 +324,4 @@ function addProperty<T extends BabelCore.types.Node>(
|
||||
}
|
||||
return object;
|
||||
}
|
||||
export { plugin as 'module.exports' };
|
||||
|
Reference in New Issue
Block a user