mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-11 02:44:20 +00:00
node_modules
This commit is contained in:
parent
0e414c630a
commit
78c309ef59
555 changed files with 103819 additions and 1 deletions
44
node_modules/bottleneck/rollup.config.light.js
generated
vendored
Normal file
44
node_modules/bottleneck/rollup.config.light.js
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import json from 'rollup-plugin-json';
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
|
||||
const bannerLines = [
|
||||
'This file contains the Bottleneck library (MIT), compiled to ES2017, and without Clustering support.',
|
||||
'https://github.com/SGrondin/bottleneck',
|
||||
].map(x => ` * ${x}`).join('\n');
|
||||
const banner = `/**\n${bannerLines}\n */`;
|
||||
|
||||
const missing = `export default () => console.log('You must import the full version of Bottleneck in order to use this feature.');`;
|
||||
const exclude = [
|
||||
'RedisDatastore.js',
|
||||
'RedisConnection.js',
|
||||
'IORedisConnection.js',
|
||||
'Scripts.js'
|
||||
];
|
||||
|
||||
export default {
|
||||
input: 'lib/index.js',
|
||||
output: {
|
||||
name: 'Bottleneck',
|
||||
file: 'light.js',
|
||||
sourcemap: false,
|
||||
globals: {},
|
||||
format: 'umd',
|
||||
banner
|
||||
},
|
||||
external: [],
|
||||
plugins: [
|
||||
json(),
|
||||
{
|
||||
load: id => {
|
||||
const chunks = id.split('/');
|
||||
const file = chunks[chunks.length - 1];
|
||||
if (exclude.indexOf(file) >= 0) {
|
||||
return missing
|
||||
}
|
||||
}
|
||||
},
|
||||
resolve(),
|
||||
commonjs()
|
||||
]
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue