fix dependencies, edit rollup and ts config, switch jsx runtime, use pnpm lockfiles

This commit is contained in:
AAGaming 2022-05-20 18:13:31 -04:00
commit 569f8b8707
No known key found for this signature in database
GPG key ID: 3050166AC290BDF5
7 changed files with 884 additions and 2513 deletions

View file

@ -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',