question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ship flat bundles instead of a lib folder

See original GitHub issue

Based on this blogpost by the React core team we should ship flat bundles instead of the lib folder we have right now. Essentially, rather than shipping tons of files we’d only ship two bundles that contain the CommonJS code.

This will make it possible for us to experiment with Google Closure Compiler, ref #1360.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Andaristcommented, Dec 17, 2017

Going to prepare a PR for this.

1reaction
juristrcommented, Dec 16, 2017

Nice 👍. The angular team also ships their libs as FESM (Flat ES Modules). Here’s the spec they use: https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs

Also gave a talk about it last week: https://youtu.be/K4YMmwxGKjY. Maybe it helps 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Make Maven to copy dependencies into target/lib
Works for me with dependencies directory created in target folder. Like it! ... Maven will bundle the dependencies into the right location.
Read more >
Bundle Structures - Apple Developer
Explains how to use bundle objects to organize resources.
Read more >
bundle install - Bundler
Makes a bundle that can work without depending on Rubygems or Bundler at runtime. A space separated list of groups to install has...
Read more >
Publishing flat npm packages for easier import paths & smaller ...
I recently published a library on npm named react-dom-primitives . ... So, instead of publishing from the root directory of the project ...
Read more >
bundle install fails with Gem::Ext::BuildError #1175 - GitHub
I'm using mysql2 gem with the Gemfile definition as platforms :ruby do gem 'mysql2' gem 'pg', '~> 1.1' end But what happens is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found