Home
last modified time | relevance | path

Searched refs:absModulePath (Results 1 – 1 of 1) sorted by relevance

/third_party/weex-loader/deps/weex-scripter/lib/
Drequire-parse.js42 function findModuleMain(absModulePath) { argument
52 if (path.extname(absModulePath) === '.js') {
53 absModulePath = absModulePath.replace(/\..+/, '')
56 attempt(absModulePath + '.js')
58 var pkg = JSON.parse(fs.readFileSync(absModulePath + '/package.json').toString())
59 attempt(path.resolve(absModulePath, pkg.main + '.js'))
60 attempt(path.resolve(absModulePath, pkg.main))
62 attempt(absModulePath + '/index.js')