obsidian-wielder icon indicating copy to clipboard operation
obsidian-wielder copied to clipboard

Offer alternative version of publish.js

Open victorb opened this issue 2 years ago • 0 comments

Currently, publish.js is kind of big (3.6M on disk, 446KB gzipped) because we're not doing any minifying nor tree-shaking (which is hard when we want to evaluate arbitrary code). Biggest reason for not doing any minifying yet is because it'll make the errors a lot harder to understand when you're doing something wrong, so not sure if we can address that somehow.

But in the meantime, we could probably offer two versions of the publish.js. The first one being the existing one which is the full errors / non-minified one. And a second one which is minified/production/cryptic errors one, that people can use if they want to instead of the full-errors one.

victorb avatar Jun 23 '22 08:06 victorb