absurd icon indicating copy to clipboard operation
absurd copied to clipboard

JSPM / SystemJS support?

Open peteruithoven opened this issue 10 years ago • 1 comments

More of a question than an issue / feature request; is someone working on a JSPM/SystemJS loader plugin for AbsurdJS? http://jspm.io/ Just as example, there is a Less plugin: https://github.com/Aaike/jspm-less-plugin

Having a AbsurdJS loader plugin would enable someone to use the following in their javascript web component for example:

require("path/to/style.js!absurd"); // for CommonJS
import "path/to/style.js!absurd" // for ES6

If you'd use a specific file extension this could probably also work:

require("path/to/style.ajs!"); // for CommonJS
import "path/to/style.ajs!" // for ES6

Building on JSPM/SystemJS would allow users to use AbsurdJS without using a preprocessor like your cli, gulp etc (while still being able to do this to bundle it).

peteruithoven avatar Jul 11 '15 17:07 peteruithoven

Hi @peteruithoven,

I'm not really familiar with jspm. I'll need some time to dig into that and then I''ll probably write a plugin. Unfortunately (as far as I know) there is no developer taking actions in that direction.

krasimir avatar Jul 11 '15 20:07 krasimir