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 (3,761 stars) (128 forks)batch import
enhancementhelp wanted

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