Alec Larson

Results 407 issues of Alec Larson

For example, a plugin may want to run only if a certain package is imported.

enhancement

If all plugins only have `Program` and/or `ImportDeclaration` handlers, we can skip walking the entire AST. Both of these are top-level node types.

enhancement

```js node.wrap('try {\n', '\n}') // identical to: node.before('try {\n') node.after('\n}') ``` You can wrap the node with anything, but the main use cases are blocks and call expressions. Do we...

enhancement

```js const utils = require('nebu/utils'); ``` It's probably a good idea to include more utility functions for plugin developers. [Bublé][1] has [some functions](https://github.com/Rich-Harris/buble/blob/master/src/program/Node.js#L27-L79) that could be useful. [1]: https://github.com/Rich-Harris/buble

enhancement

Sometimes, a block is optional (eg: the `finally` block in a try statement). Currently, the `set` method doesn't know how to handle each case appropriately. ```js // This *should* work,...

bug

When `opts.filename` is defined, search up the chain of parent directories for a `nebu.config.js` module. If the module exports an array, use it for `opts.plugins`. Otherwise, an object should be...

enhancement

`nebu` command for the terminal. ```sh Options: -o output directory/filename -m sourcemap option -x ignored file patterns ``` When `-o` is unspecified, the result is printed to the console (if...

enhancement

When moving a block of code, you can use `toString` on each node and "paste" the result by using the appropriate method. There needs to be a way to preserve...

enhancement

`hasBinding(node, name)` returns true if a variable exists within the scope of the given node.

enhancement

I'd like to formally request a Raycast extension, similar to https://github.com/capipo/raycast-pass Extension guide: https://developers.raycast.com/basics/create-your-first-extension