dev-dep-tool
Advanced tools
Comparing version 0.0.14-dev.6 to 0.0.14-dev.7
@@ -5,7 +5,7 @@ var _path = require("path"); | ||
var _File = require("dr-js/library/node/file/File"); | ||
const getExportListFromParsedAST = (fileString, sourceFilename) => { | ||
const getExportListFromParsedAST = (fileString, sourceFilename, babylonPluginList) => { | ||
const resultAST = (0, _babylon.parse)(fileString, { | ||
sourceFilename, | ||
sourceType: 'module', | ||
plugins: ['objectRestSpread', 'classProperties', 'exportDefaultFrom', 'exportNamespaceFrom'] | ||
plugins: babylonPluginList || ['objectRestSpread', 'classProperties', 'exportDefaultFrom', 'exportNamespaceFrom', 'jsx'] | ||
}); | ||
@@ -29,2 +29,3 @@ const exportNodeList = resultAST.program.body.filter(({ | ||
const createExportParser = ({ | ||
babylonPluginList, | ||
logger | ||
@@ -54,3 +55,3 @@ }) => { | ||
}); | ||
const exportList = getExportListFromParsedAST(fileString, path); | ||
const exportList = getExportListFromParsedAST(fileString, path, babylonPluginList); | ||
getRoute(routeList).fileList.push({ | ||
@@ -57,0 +58,0 @@ name: name.slice(0, -3), |
@@ -1,1 +0,1 @@ | ||
{"name":"dev-dep-tool","version":"0.0.14-dev.6","author":"dr-js","license":"MIT","description":"Provide common package devDependencies","keywords":["Dr","Dr-js","JavaScript"],"homepage":"https://github.com/dr-js/dev-dep#readme","repository":{"type":"git","url":"git+https://github.com/dr-js/dev-dep.git"},"bugs":{"url":"https://github.com/dr-js/dev-dep/issues"},"bin":"bin/index.js","dependencies":{"dr-js":"^0.12.0-dev.2"}} | ||
{"name":"dev-dep-tool","version":"0.0.14-dev.7","author":"dr-js","license":"MIT","description":"Provide common package devDependencies","keywords":["Dr","Dr-js","JavaScript"],"homepage":"https://github.com/dr-js/dev-dep#readme","repository":{"type":"git","url":"git+https://github.com/dr-js/dev-dep.git"},"bugs":{"url":"https://github.com/dr-js/dev-dep/issues"},"bin":"bin/index.js","dependencies":{"dr-js":"^0.12.0-dev.2"}} |
32172
768