prelude-ls icon indicating copy to clipboard operation
prelude-ls copied to clipboard

npm package that includes prelude-browser{,-min}.js

Open corwin-of-amber opened this issue 6 years ago • 2 comments

Bower is retiring, and the npm package prelude-ls contains only the Node.js version. Can we have a version that includes the browser build as well?

corwin-of-amber avatar Jan 12 '19 11:01 corwin-of-amber

Curious: Why do people use browser builds of JS modules?

I put stuff stuff through browserify / webpack / Rollup (to resolve requires), then uglify / esmangle (to minify). I need a build step for LiveScript→JS anyway, so a couple more are trivial.

Is it because you have an app where the same stable library is used across multiple dynamic pages and so you want it in a separate file with a long Cache-Control? You can do that with Browserify's --standalone and --external I think.

anko avatar Feb 13 '19 05:02 anko

Fair point. I can only answer from my personal experience (and I suspect hoping for other responses in this one random issue thread is highly optimistic); I don't use browserify / webpack / etc. and perhaps that's my own fallacy. I usually have just a handful of .ls files so I just compile them with lsc and include them in the page.

I believe this simple model should still be possible, at least for the sake of those at entry level who are not familiar with bundlers and want to experiment with LiveScript.

corwin-of-amber avatar Feb 28 '19 08:02 corwin-of-amber