Sam Blåsvær
Sam Blåsvær
Thanks, found my way around it. The object just seemed bloated ...
I fixed my issue by moving the gulpfile to the root level, and made a bit of rearranging to avoid the `../` part of the path.
Not sure I get this. You pass a file entry point ('path_to_file.js') to 'detective' ... I can't seem to understand this sentense: ``` Source content as string or AST tree....
I can only generate this error: `Error: You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a undefined node without passing...
But then I need ANOTHER module to get the AST from the code!? I would expect konan to return THAT based upon a file path I pass to it ......
It's VERY confusing!
Could you please provide an example where you simply pass in a file path as a string ... IF that's how I can use it!
This code: ``` konan(` import React, {Component} from 'react' const vue = require('vue/dist/vue') import('./my-async-module').then() require(path.resolve('./')) `) ``` simply doesn't make any sense.
'detective' works like this: ``` var detective = require('detective'); var fs = require('fs'); var src = fs.readFileSync(__dirname + '/strings_src.js'); var requires = detective(src); console.dir(requires); ``` And I can't see how...
Well, it only tell me that the module does NOT work like 'detective`. And that's why I get errors when trying to do this: ``` const konan = require('konan'); let...