From 96bdf1cc0df59f370389d89541ce780d4ececc95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Sun, 29 Dec 2024 22:35:49 +0800 Subject: [PATCH] feat: add rspack & rolldown export entry --- package.json | 8 ++++++++ src/rolldown.ts | 3 +++ src/rspack.ts | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 src/rolldown.ts create mode 100644 src/rspack.ts diff --git a/package.json b/package.json index c727e99..14487b9 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,14 @@ "require": "./dist/esbuild.cjs", "import": "./dist/esbuild.js" }, + "./rspack": { + "require": "./dist/rspack.cjs", + "import": "./dist/rspack.js" + }, + "./rolldown": { + "require": "./dist/rolldown.cjs", + "import": "./dist/rolldown.js" + }, "./nuxt": { "require": "./dist/nuxt.cjs", "import": "./dist/nuxt.js" diff --git a/src/rolldown.ts b/src/rolldown.ts new file mode 100644 index 0000000..082a55c --- /dev/null +++ b/src/rolldown.ts @@ -0,0 +1,3 @@ +import unplugin from '.' + +export default unplugin.rolldown as typeof unplugin.rolldown diff --git a/src/rspack.ts b/src/rspack.ts new file mode 100644 index 0000000..6df8a02 --- /dev/null +++ b/src/rspack.ts @@ -0,0 +1,3 @@ +import unplugin from '.' + +export default unplugin.rspack as typeof unplugin.rspack