Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
supportsStaticESM: true,
supportsDynamicImport: true,
...rest.caller
}
});
const lru = new QuickLRU<
string,
{ code: string; promise: Promise<{ code: string; map: any }> }
>({
maxSize: 1000
});
let hasher: (str: string) => string;
export let hasherPromise = initHasher().then(({ h64 }: any) => {
hasher = h64;
});
let rollupPluginBabel = (pluginOptions: any): Plugin => {
const { exclude, extensions, include, ...babelOptions } = unpackOptions(
pluginOptions
);
const extensionRegExp = new RegExp(
`(${extensions.map(escapeRegExpCharacters).join("|")})$`
);
const includeExcludeFilter = createFilter(include, exclude);
const filter = (id: string) =>
extensionRegExp.test(id) && includeExcludeFilter(id);
return {