How to use the @haul-bundler/core.resolveModule function in @haul-bundler/core

To help you get started, we’ve selected a few @haul-bundler/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github callstack / haul / packages / haul-preset-0.59 / src / defaultConfig.ts View on Github external
directories: providesModuleNodeModules.map((_: any) => {
            if (typeof _ === 'string') {
              if (_ === 'react-native') {
                return path.join(
                  resolveModule(root, 'react-native'),
                  'Libraries'
                );
              }
              return resolveModule(root, _);
            }
            return path.join(resolveModule(root, _.name), _.directory);
          }),
          hasteOptions: hasteOptions || {},
github callstack / haul / packages / haul-preset-0.59 / src / defaultConfig.ts View on Github external
directories: providesModuleNodeModules.map((_: any) => {
            if (typeof _ === 'string') {
              if (_ === 'react-native') {
                return path.join(
                  resolveModule(root, 'react-native'),
                  'Libraries'
                );
              }
              return resolveModule(root, _);
            }
            return path.join(resolveModule(root, _.name), _.directory);
          }),
          hasteOptions: hasteOptions || {},
github callstack / haul / packages / haul-preset-0.60 / src / defaultConfig.ts View on Github external
directories: providesModuleNodeModules.map((_: any) => {
            if (typeof _ === 'string') {
              if (_ === 'react-native') {
                return path.join(
                  resolveModule(root, 'react-native'),
                  'Libraries'
                );
              }
              return resolveModule(root, _);
            }
            return path.join(resolveModule(root, _.name), _.directory);
          }),
          hasteOptions: hasteOptions || {},
github callstack / haul / packages / haul-preset-0.60 / src / defaultConfig.ts View on Github external
directories: providesModuleNodeModules.map((_: any) => {
            if (typeof _ === 'string') {
              if (_ === 'react-native') {
                return path.join(
                  resolveModule(root, 'react-native'),
                  'Libraries'
                );
              }
              return resolveModule(root, _);
            }
            return path.join(resolveModule(root, _.name), _.directory);
          }),
          hasteOptions: hasteOptions || {},
github callstack / haul / packages / haul-preset-0.59 / src / defaultConfig.ts View on Github external
directories: providesModuleNodeModules.map((_: any) => {
            if (typeof _ === 'string') {
              if (_ === 'react-native') {
                return path.join(
                  resolveModule(root, 'react-native'),
                  'Libraries'
                );
              }
              return resolveModule(root, _);
            }
            return path.join(resolveModule(root, _.name), _.directory);
          }),
          hasteOptions: hasteOptions || {},
github callstack / haul / packages / haul-preset-0.60 / src / defaultConfig.ts View on Github external
directories: providesModuleNodeModules.map((_: any) => {
            if (typeof _ === 'string') {
              if (_ === 'react-native') {
                return path.join(
                  resolveModule(root, 'react-native'),
                  'Libraries'
                );
              }
              return resolveModule(root, _);
            }
            return path.join(resolveModule(root, _.name), _.directory);
          }),
          hasteOptions: hasteOptions || {},