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.

How to bundle depth-wise?

See original GitHub issue

I have a trivial project using es6 modules and I’m trying to bundle the javascript into a single file. However I am not having success.

  • bundleRelations. This appears to be joining multiple script tags <script src=foo.js><script src=bar.js> into a single <script src=foo+bar.js>. With HTTP2 this conversion seems to provide minimal benefit…
  • relation.inline() this doesn’t appear to work. It just prevents the dependency from being written at all (breaking the site).

So is there a way to do this with assetgraph? Or should I stick to another bundler like webpack?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (22 by maintainers)

github_iconTop GitHub Comments

1reaction
kevincoxcommented, Nov 8, 2020

Thanks! That’s fantastic. As far as I’m concerned this issue can be closed now.

Thanks for being incredibly responsive and helpful!

1reaction
kevincoxcommented, Nov 3, 2020

That worked for me. Example of using this is https://gitlab.com/kevincox/gridfinder/-/commit/c306997a42bb8f02f94ba54832e046bcc243b0a3. The resulting site is https://ipfs.io/ipfs/QmXCoP3YLkcqL2LnJ4X2JfWi1RsF7AnuT2z4Lwhk6Z5T1U/, you can see a pretty optimal load graph of HTML -> minimum-interactive resources -> remaining-resources.

For that simple project it works perfectly, however I still don’t think the API is optimal. I think it would be better to just pass the javascript directly. This provides a lot more flexibility to the user. If they want to run on modules from inside HTML they can easily do that with findRelations.

Also I don’t think a “sharedBundles” type strategy would work with this as it processes every entrypoint separately. I think it would need to take all of the entrypoints at once to do the right thing there?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Depthwise Separable Convolutions in PyTorch - Marc Päpper
First a depthwise convolution projects 3x3 pixels of each input channel to one corresponding output pixel (matching colors). Then a pointwise ...
Read more >
Depth wise Separable Convolutional Neural Networks
In depth-wise operation, convolution is applied to a single channel at a time unlike standard CNN's in which it is done for all...
Read more >
Depthwise Separable Convolution - SAS Help Center
Step 1: Depthwise Separable Convolution​​ The depthwise convolution does not combine the input channels. It convolves on each channel separately. ...
Read more >
3.4. Depthwise Convolution - Dive into Deep Learning Compiler
The data used for depthwise convolution in MXNet can then be generated accordingly. import mxnet as mx # Save to the d2ltvm package....
Read more >
Depthwise Convolution Is All You Need for Learning Multiple ...
In this paper, we propose a multi-domain learning architecture based on depthwise separable convolu- tion. The proposed approach is based on the assumption...
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