From 569f8b8707636cb52d9b89278c28150d668175db Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 20 May 2022 18:13:31 -0400 Subject: fix dependencies, edit rollup and ts config, switch jsx runtime, use pnpm lockfiles --- rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rollup.config.js') diff --git a/rollup.config.js b/rollup.config.js index 6e8c396..c43c88c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,9 +20,10 @@ export default defineConfig({ context: 'window', external: ['react', 'react-dom'], output: { - file: 'dist/example-plugin.js', + file: 'dist/index.js', globals: { react: 'SP_REACT', + 'react-dom': 'SP_REACTDOM', }, format: 'iife', exports: 'default', -- cgit v1.2.3