nolanlawson/optimize-js

Add an option to read sourcemap

Open

#5 opened on Sep 19, 2016

View on GitHub
 (9 comments) (15 reactions) (0 assignees)JavaScript (128 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (3,761 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Adding an option to access the source map would ease the integration with build tools. e.g.:

const {code, map} = optimizeJs(input, {
  sourceMap: true,
  extractSourceMap: true,
})

Contributor guide