commit
This commit is contained in:
parent
be4fd23bcf
commit
0bd53741af
728 changed files with 86573 additions and 0 deletions
40
node_modules/sandwich-stream/rollup.config.js
generated
vendored
Normal file
40
node_modules/sandwich-stream/rollup.config.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
import typescript from 'rollup-plugin-typescript2';
|
||||
|
||||
import nodeOs from 'os';
|
||||
import nodePath from 'path';
|
||||
|
||||
import pkg from './package.json';
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'src/sandwich-stream.ts',
|
||||
external: [
|
||||
'stream'
|
||||
],
|
||||
plugins: [
|
||||
typescript({
|
||||
cacheRoot: nodePath.join(
|
||||
nodeOs.tmpdir(),
|
||||
String(Date.now),
|
||||
'.rpt2_cache'
|
||||
),
|
||||
tsconfigOverride: {
|
||||
compilerOptions: {
|
||||
composite: false
|
||||
}
|
||||
}
|
||||
})
|
||||
],
|
||||
output: [
|
||||
{
|
||||
file: `${pkg.main}.js`,
|
||||
format: 'cjs',
|
||||
exports: 'named'
|
||||
},
|
||||
{
|
||||
file: `${pkg.main}.mjs`,
|
||||
format: 'esm'
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue