Coder Social home page Coder Social logo

teste-rollup's Introduction

Rollup and SystemJS POC

Since some libraries are using rollup to bundle, i wanted to give it a try. It seamed cool, since it bundles to diferent types of modules, like UMD, ESM and etc... And SystemJS is famous a es module loader. I never used it, but testing it would be nice.

Considerations

Rollup Configuration

I don't know if I got too much used with Parcel, but a config file is just too boring to do. I also had a problem with UMD file and I had to put a plugin to solve it. Seeing the bright side, it's nice that we can bundle multiples types of modules, this make libs reusable accross the js enviroments.

Package Name Map

This is a really nice feature. Just make a json with all the packages you need and systemjs will get them for you. But I don't know why, I couldn't get it to work. I had to System.import() hybrids lib so I could use the component, and it doesn't look good. Since SystemJS 2.0 just came out, I'll try at a later time.

System.import to import the libs

I know that SystemJs is really close to the real spec, but using a lib just doesn't look good to me. I hope the Package Name Map becomes a native spec real soom, it will be better to use only <script type="module"></script> to load.

SystemJS size

It's really a tiny lib, so it won't impact application performance. Use it without trouble.

teste-rollup's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.