codemirror icon indicating copy to clipboard operation
codemirror copied to clipboard

Build without Lodash?

Open chriscoyier opened this issue 11 years ago • 3 comments
trafficstars

Is there a way to build emmet.js without lodash being baked right into the file? Like lodash is already available globally so it just uses that?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2969098-build-without-lodash?utm_campaign=plugin&utm_content=tracker%2F438327&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F438327&utm_medium=issues&utm_source=github).

chriscoyier avatar Jul 04 '14 18:07 chriscoyier

Yeah, I think so. Recent Emmet core is written with AMD/Require.js modules and uses almond for compiling it into a single file.

You can try to install Emmet as NPM module (npm install emmet) into your project, create your own builder similar to this one but provide shim for Lodash

sergeche avatar Jul 07 '14 12:07 sergeche

Thanks we'll give it a shot as soon as we can!

chriscoyier avatar Jul 07 '14 14:07 chriscoyier

Howdy!

You don't have to leave this issue open since it's not really a bug, but I never had any luck with this but still have a need for it.

I figured I'd put a bounty on it, which I wrote up here: https://gist.github.com/chriscoyier/f9315fbbe0b5ad80673d

I see you have Bountysource on here, so if you'd rather I use that, lemme know.

chriscoyier avatar Oct 21 '14 01:10 chriscoyier