mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
44 lines
705 B
TypeScript
44 lines
705 B
TypeScript
import globals from 'rollup-plugin-node-globals';
|
|
|
|
// No options (default)
|
|
(() => {
|
|
// $ExpectType Plugin
|
|
globals();
|
|
})();
|
|
|
|
// With every options
|
|
(() => {
|
|
// $ExpectType Plugin
|
|
globals({
|
|
process: false,
|
|
global: false,
|
|
buffer: false,
|
|
dirname: false,
|
|
filename: false,
|
|
baseDir: '/',
|
|
});
|
|
})();
|
|
|
|
// Filter files
|
|
(() => {
|
|
// $ExpectType Plugin
|
|
globals({
|
|
include: '*.js',
|
|
exclude: '*.js',
|
|
});
|
|
|
|
// $ExpectType Plugin
|
|
globals({
|
|
include: /.js$/,
|
|
exclude: ['foo.js', 'bar.js'],
|
|
});
|
|
})();
|
|
|
|
// Sourcemaps
|
|
(() => {
|
|
// $ExpectType Plugin
|
|
globals({
|
|
sourceMap: false,
|
|
});
|
|
})();
|