mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 06:07:57 +00:00
1790939046
This saves around 13MB in the resulting uncompressed docker image. Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
7 lines
319 B
JavaScript
7 lines
319 B
JavaScript
// Some of the dependencies (e.g. JSONStream) are hybrid executable-library
|
|
// and have a #! /usr/bin/env node at the beginning of the file.
|
|
// This webpack loader removes it so that we have valid javascript for webpack to load.
|
|
module.exports = function (source) {
|
|
return source.toString().replace(/^#! .*\n/, '')
|
|
}
|