KC's Workspace
    Preparing search index...
    interface HookFilter {
        code?: GeneralHookFilter<StringOrRegExp>;
        id?: GeneralHookFilter<StringOrRegExp>;
        moduleType?: ModuleTypeFilter;
    }
    Index

    Properties

    Properties

    This filter is used to do a pre-test to determine whether the hook should be called.

    Include all ids that contain node_modules in the path.

    { id: '**'+'/node_modules/**' }
    

    Include all ids that contain node_modules or src in the path.

    { id: ['**'+'/node_modules/**', '**'+'/src/**'] }
    

    Include all ids that start with http

    { id: /^http/ }
    

    Exclude all ids that contain node_modules in the path.

    { id: { exclude: '**'+'/node_modules/**' } }
    

    Formal pattern to define includes and excludes.

    { id : {
    include: ['**'+'/foo/**', /bar/],
    exclude: ['**'+'/baz/**', /qux/]
    }}
    moduleType?: ModuleTypeFilter