From 92c2e3c385025109b7562c550fe73ce40a8453ed Mon Sep 17 00:00:00 2001 From: JounQin Date: Wed, 24 Jan 2024 16:03:22 +0800 Subject: [PATCH] feat: add esm entries so that no jsx transformation required --- package.json | 2 +- packages/vue-qrcode/package.json | 1 + packages/vue-qrious/package.json | 1 + packages/vue-resizor/package.json | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c1b4026d..4dbe46311 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "packageManager": "yarn@1.22.21", "scripts": { "build": "run-p build:*", - "build:r": "r -e named -f cjs --vue-jsx", + "build:r": "r -e named -f cjs,esm, --vue-jsx", "build:styles": "lessc --source-map packages/vue-resizor/src/styles.less packages/vue-resizor/lib/styles.css", "build:ts": "tsc -b", "clean": "rimraf dist packages/*/{lib,*.tsbuildinfo}", diff --git a/packages/vue-qrcode/package.json b/packages/vue-qrcode/package.json index 88d9bf0d9..a8bd7a8d5 100644 --- a/packages/vue-qrcode/package.json +++ b/packages/vue-qrcode/package.json @@ -13,6 +13,7 @@ "exports": { ".": { "types": "./lib/index.d.ts", + "import": "./lib/index.esm.mjs", "require": "./lib/index.cjs", "default": "./lib/index.js" }, diff --git a/packages/vue-qrious/package.json b/packages/vue-qrious/package.json index 9d6e3021c..daab45732 100644 --- a/packages/vue-qrious/package.json +++ b/packages/vue-qrious/package.json @@ -13,6 +13,7 @@ "exports": { ".": { "types": "./lib/index.d.ts", + "import": "./lib/index.esm.mjs", "require": "./lib/index.cjs", "default": "./lib/index.js" }, diff --git a/packages/vue-resizor/package.json b/packages/vue-resizor/package.json index 71f78086b..d4dbfef64 100644 --- a/packages/vue-resizor/package.json +++ b/packages/vue-resizor/package.json @@ -13,6 +13,7 @@ "exports": { ".": { "types": "./lib/index.d.ts", + "import": "./lib/index.esm.mjs", "require": "./lib/index.cjs", "default": "./lib/index.js" },