• Robert Knight's avatar
    Replace Browserify with Rollup · bcf7ef0a
    Robert Knight authored
    Replace Browserify with Rollup as a module bundler. This brings several
    advantages:
    
    - It is a more modern bundler that has better support in the ecosystem,
      more active maintenence, fewer dependencies and is easier to write plugins for.
      The core team also maintain most of the plugins that we need.
    
    - It has native support for modern platform features like ES modules,
      including dynamic import for lazy-loading of functionality.
    
    - It generates smaller bundles due to its ability to do tree shaking and scope hoisting.
    
    The new bundles are generated as ES modules rather than UMD / IIFE bundles.
    Our target browsers now all support ES modules and this will enable us to use
    native static/dynamic imports for code splitting or lazy-loading of
    functionality in future.
    
    The initial Rollup build generates one bundle per application (boot script,
    annotator, sidebar). This simplifies the build process and minimizes production
    bundle size, at the cost of making incremental updates during development
    slightly slower.
    
    Build performance is currently similar to or a little slower than Browserify.
    We can optimize this by adding caching of transforms (mainly Babel) and
    pre-building of a vendor bundle containing large dependencies.
    
    As part of changing the bundler this also changes how the code is packaged
    for tests.  We now do the bundling ourselves rather than using a Karma
    integration. This makes it much easier to inspect the processed code and fix
    problems. It also makes it easier to optimize the bundle building in future.
    bcf7ef0a
Name
Last commit
Last update
..
Annotation Loading commit data...
GroupList Loading commit data...
hooks Loading commit data...
test Loading commit data...
AnnotationView.js Loading commit data...
AutocompleteList.js Loading commit data...
Excerpt.js Loading commit data...
FilterSelect.js Loading commit data...
FilterStatus.js Loading commit data...
HelpPanel.js Loading commit data...
HypothesisApp.js Loading commit data...
LaunchErrorPanel.js Loading commit data...
LoggedOutMessage.js Loading commit data...
LoginPromptPanel.js Loading commit data...
MarkdownEditor.js Loading commit data...
MarkdownView.js Loading commit data...
Menu.js Loading commit data...
MenuItem.js Loading commit data...
MenuKeyboardNavigation.js Loading commit data...
MenuSection.js Loading commit data...
ModerationBanner.js Loading commit data...
NotebookFilters.js Loading commit data...
NotebookResultCount.js Loading commit data...
NotebookView.js Loading commit data...
PaginatedThreadList.js Loading commit data...
PaginationNavigation.js Loading commit data...
SearchInput.js Loading commit data...
SelectionTabs.js Loading commit data...
ShareAnnotationsPanel.js Loading commit data...
ShareLinks.js Loading commit data...
SidebarContentError.js Loading commit data...
SidebarPanel.js Loading commit data...
SidebarView.js Loading commit data...
Slider.js Loading commit data...
SortMenu.js Loading commit data...
StreamSearchInput.js Loading commit data...
StreamView.js Loading commit data...
TagEditor.js Loading commit data...
TagList.js Loading commit data...
Thread.js Loading commit data...
ThreadCard.js Loading commit data...
ThreadList.js Loading commit data...
ToastMessages.js Loading commit data...
TopBar.js Loading commit data...
Tutorial.js Loading commit data...
UserMenu.js Loading commit data...
VersionInfo.js Loading commit data...