UNPKG

@kkt/scope-plugin-options

Version:

This will modify the CRA ModuleScopePlugin plugin that prevents to import modules from outside the `src` directory.

10 lines (9 loc) 474 B
import { Configuration } from 'webpack'; import { LoaderConfOptions } from 'kkt'; export type ReactLibraryOptions = LoaderConfOptions & { allowedFiles?: ReadonlyArray<string>; allowedPaths?: ReadonlyArray<string>; appSrcs?: string | ReadonlyArray<string>; }; export declare function disableScopePlugin(conf: Configuration): Configuration; export default function scopePluginOptions(conf: Configuration, env: string, options: ReactLibraryOptions): Configuration;