Giter Club home page Giter Club logo

bit-imports's Introduction

Build Status Gitter Stories in Ready

module loader for the browser

bit imports supports loading module with CJS and AMD format in the browser. And because it is built on top of bit loader, you get a full transformation workflow. Bit imports also uses amd resolver as the configuration provider, which is modeled after requirejs configuration format to give you a familar environment for setting things up.

Currently, bit imports implements an XHR fetch provider to load files. It also leverages # sourceURL to integrate with debugging capabilities in all major browsers. The plan is to have logic to detect if bit imports is running in the browser or nodejs so that files can be loaded transparently regardless of environment.

So why does bit imports even exist? Bottom line - to provide you with a flexible module loader that supports CJS and AMD without a build step during the development cycles of your application. Furthermore, to provide you with a module loading system that allows you to leverage tools like babel to unlock access to the latest ECMAScript features via transpilation, right in the browser with little configuration. Take a look at bit sandbox where ES6, AMD, and CJS modules are all harmoniously running together in the browser without a build step.

A workflow that works really well is one in which your web application simply does not have a build step during development, and all external dependencies (toolkits and frameworks) consumed by the application itself are generally prebundled with browserify (or similar tool). The key is in the separation of what is application code and external dependencies. Your code vs someone else's code. All your application needs is a way to load dependencies without needing a build step for each and every change made to the code. Only when the application is ready for deployment are you encouraged to bundle everything up with tools such as browserify.

Install

$ npm install bit-imports

bit-imports's People

Contributors

gitter-badger avatar mark-simulacrum avatar miguelcastillo avatar nucliweb avatar waffle-iron avatar

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.