Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack to vite #51

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

webpack to vite #51

wants to merge 3 commits into from

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