Comments (3)
I'm glad you like it. It is very early days, and my documentation is very much lacking, so I hope I'm not doing a disservice. Any suggestions on how to make things clearer always welcome.
I'm working on allowing it to be a "drop in" replacement for RequireJS as well, still aiming to get the test coverage up a little more before announcing that properly though.
About your questions -
-
In theory it can support IE8+. The ES6 module polyfill works on IE8, but I would need to do a few IE8 function replacements (Array.prototype.indexOf etc) to properly get this support going. It shouldn't take more than an hour to get that up when the time comes though - create a ticket when you need it, and I'll get it done :)
-
The CDN is a convenience. It basically provides all of github and npm available without any install process necessary. The CDN is located at "https://github.jspm.io" and "https://npm.jspm.io". These CDNs then are created as "locations" by default in jspm (https://github.com/jspm/jspm-loader/blob/master/loader.js#L656).
This means I can write things like: jspm.import('npm:underscore');
, which simply loads the URL https://npm.jspm.io/underscore.js
, which then intelligently downloads the NPM module and gives back the latest version main file, with dependency management as well.
Does that make sense? Will think about how I can explain this better on the site.
from systemjs.
Hello Guy,
that sounds amazing!
You should clarify regarding the CDN
- Whether it is or will be a commercial offer
- Whether it just routes the requests to Github and npm or actually caches the resources
- Provide usage terms
As far as I understand the CDN machanism, I would be able to add my own one (programmatically)
If I had something like cdnjs -- is that right?
Again, I really really like this approach.
Cheers
from systemjs.
I actually just added cdnjs this morning - cdnjs/cdnjs#1728 (comment)
The CDN caches the resources, but regularly updates the cache so that there is never more than a minute delay (it is actually instant for new requests and a few seconds for branch updates). Exact version tag numbers are cached for longer than say the "master" branch request. It does all this quite intelligently.
The CDN costs money to run, but I am offering and always will offer it as a free service.
I have been thinking about whether or not to open source the CDN itself, but am undecided on this at the moment.
In terms of a commercial offering, I plan to provide a paid production service to pay for the free CDN. But I am first working on providing a completely open source build workflow using the jspm commandline tool that will work just as easily, exactly like the RequireJS optimizer. This way there is no lock in, as the self-hosting option will be simple and free just like standard builds today.
Would be interested to hear how that comes across though as well.
from systemjs.
Related Issues (20)
- Where I can see example how to use systemjs with new angular version (14 or 15)
- import with npm
- How to register a module by API HOT 3
- systemjs load css suport url(image/test.svg) without quotes in url
- setupProxy.js file not working in single-spa-react
- Apply CSS from nested dependency HOT 2
- worker-load.js conflicts with fetch-load.js and prevents systemjs-babel from working in a web worker
- Updating systemjs from 0.21.5 to latest (6.14.1)
- lastScript detection doesn't seem to be 100% reliable HOT 3
- [NodeJS] Should System.import('my-module') refetch if called twice? HOT 2
- Multiple dependencies bundled in one file (previously "bundles" config option)
- Distribution Files published to npm do not match what is in GitHub for version 16.14.2 (have windows style line breaks)
- Definitelytyped types for system-node.cjs HOT 1
- Top-level await does not wait for its dependencies
- system.min.js doesn't include latest version HOT 1
- Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') HOT 1
- Support fetchPriority with external import maps HOT 1
- Conflicting SystemJS instances — how to resolve? HOT 6
- Content Security Policy `unsafe-eval` and `unsafe-inline` still required? HOT 1
- I need to prevent SystemJS attempting to load dependencies on Shopify site, urls require a version parameter that SystemJS doesn't know HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systemjs.