Installing livecript and prelude-ls with npm and gulpfile - is there a pre-browser browser?

I installed and used livescript and its library prelude-lswith column support. I downloaded prelude-browser-min.js:

// gulpfile
'static/bower_components/prelude-ls/browser/prelude-browser-min.js', 

and I was able to import the function in the application code: {map, filter, lines} = require 'prelude-ls'.

Now I remove bower from my stack. I have also installed livecript and package prelude-lswith npm, but there is no more file prelude-browser-min.js(although the document says, to use it) As for javascript files, there are a few in the catalog lib: index.js, Obj.jsetc. I tried to load them all ( prelude-ls/**/*.js), but there is a line module.exportssomewhere in them, and it does not work to load my application ("module not defined").

If not prelude-browser-min.js, how can I do this?

update : related issue: https://github.com/gkz/prelude-ls/issues/73

+4
source share
1 answer

Ok, then I will hold on to this!

+2
source

Source: https://habr.com/ru/post/1677008/


All Articles