move to iife rather than es, add support for Wx and streamlit

This commit is contained in:
louisnw
2024-05-29 19:01:48 +01:00
parent c518cb335b
commit 8ff980abfc
20 changed files with 808 additions and 97 deletions

View File

@ -3,10 +3,14 @@ import terser from '@rollup/plugin-terser';
export default [
{
input: 'src/general/handler.ts',
input: 'src/index.ts',
output: {
file: 'dist/bundle.js',
format: 'es',
format: 'iife',
name: 'Lib',
globals: {
'lightweight-charts': 'LightweightCharts'
},
},
external: ['lightweight-charts'],
plugins: [