From 479f04a4d46d38410fe418f456187ad27425c9f7 Mon Sep 17 00:00:00 2001 From: rekyyang <511965710@qq.com> Date: Mon, 27 May 2024 17:14:41 +0800 Subject: [PATCH] fix: format (#11) --- .changeset/yellow-islands-fry.md | 5 +++++ rollup.config.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/yellow-islands-fry.md diff --git a/.changeset/yellow-islands-fry.md b/.changeset/yellow-islands-fry.md new file mode 100644 index 0000000..337f748 --- /dev/null +++ b/.changeset/yellow-islands-fry.md @@ -0,0 +1,5 @@ +--- +"@node-real/web3-plugin-bundle": minor +--- + +fix output format diff --git a/rollup.config.js b/rollup.config.js index de45dd0..92d8695 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,7 +20,7 @@ export default async () => { input: './src/index.ts', output: { dir: './dist/esm', - format: 'esm', + format: 'commonjs', sourcemap: true, }, external: resolveExternal(),