diff options
Diffstat (limited to 'frontend/rollup.config.js')
| -rw-r--r-- | frontend/rollup.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index 9a259df2..b253b679 100644 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -17,8 +17,13 @@ export default defineConfig({ 'process.env.NODE_ENV': JSON.stringify('production'), }), ], + external: ["react", "react-dom"], output: { file: '../backend/static/plugin-loader.iife.js', + globals: { + react: 'SP_REACT', + 'react-dom': 'SP_REACTDOM', + }, format: 'iife', }, -});
\ No newline at end of file +}); |
