mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Add new preserve-shebang plugin so builds of node CLI's (like this one) work
This commit is contained in:
parent
12b3647220
commit
8f03042de0
@ -45,6 +45,7 @@
|
||||
"rollup-plugin-node-resolve": "^3.0.0",
|
||||
"rollup-plugin-nodent": "^0.1.3",
|
||||
"rollup-plugin-post-replace": "^1.0.0",
|
||||
"rollup-plugin-preserve-shebang": "^0.1.3",
|
||||
"rollup-plugin-sizes": "^0.4.2",
|
||||
"rollup-plugin-uglify": "^2.0.1",
|
||||
"yargs": "^10.0.3"
|
||||
|
||||
@ -13,6 +13,7 @@ import replace from 'rollup-plugin-post-replace';
|
||||
import es3 from 'rollup-plugin-es3';
|
||||
import gzipSize from 'gzip-size';
|
||||
import prettyBytes from 'pretty-bytes';
|
||||
import shebangPlugin from 'rollup-plugin-preserve-shebang';
|
||||
|
||||
const readFile = promisify(fs.readFile);
|
||||
const stat = promisify(fs.stat);
|
||||
@ -203,7 +204,8 @@ function createConfig(options, entry, format) {
|
||||
ongenerate({ bundle }, { code }) {
|
||||
config._code = bundle._code = code;
|
||||
}
|
||||
}
|
||||
},
|
||||
shebangPlugin()
|
||||
].filter(Boolean)
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user