Skip to content

Conversation

milahu
Copy link

@milahu milahu commented Nov 25, 2022

part of os-js/OS.js#814

also "umd to esm" because modern browsers support esm

reduce bundle size by

  • no minify, no sourcemaps
  • dont bundle dependencies. here: hyperapp, @osjs/event-emitter
  • esm only, no "umd + esm" hybrid

minify should be the last step in a production build
for development (debugging), "no minify" is better

todo: move vite.config.common.js to a common package = @osjs/dev-meta

todo: write a codemod to automate this process for all osjs packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant