1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1x 51x 51x 1x 51x | // @flow // import { parse } from 'path' const Options = { default: { namespacePrefix: undefined, allowUnsafeMixedExports: false, noExportCollapse: false, noExportExtend: false, noImportInteroptPrefixes: ['sap/'], }, } export function get(filepath: string) { // const { name, dir: dirpath } = parse(filepath) // const { base: dir } = parse(dirpath) const options = {...Options.default} if (filepath.includes('prefix')) { options.namespacePrefix = 'prefix' } return options } |