Skip to content

Commit

Permalink
Optimize browser bundle for faster loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryoko619 committed Sep 22, 2023
1 parent 4e3336a commit ce3fc01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/browser/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import replace from '@rollup/plugin-replace'
import { visualizer } from 'rollup-plugin-visualizer'
import cleaner from 'rollup-plugin-cleaner'
import * as fs from 'fs'
import { terser } from 'rollup-plugin-terser'


const input = 'src/index.ts'
Expand Down Expand Up @@ -52,6 +53,7 @@ const browserPlugins = [
json(),
// Replace node built-in modules with polyfills
nodePolyfills(),
terser(),
]


Expand Down

0 comments on commit ce3fc01

Please sign in to comment.