insert-module-globals icon indicating copy to clipboard operation
insert-module-globals copied to clipboard

insert implicit module globals into a module-deps stream

Results 10 insert-module-globals issues
Sort by recently updated
recently updated
newest added

Latest https://github.com/browserify/acorn-node/ is 2.0.1, insert-module-globals uses effectively 1.8.2, which is from 2020, and doesn't support some JS syntax, which would be useful. Actually this would affect a few other packages...

This is a breaking change because the handling of dynamic imports has changed in `acord-node@v2`. See here for more details: https://github.com/browserify/acorn-node/pull/12

[xtend](https://github.com/Raynos/xtend) can easily be replaced with [Object.assign](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) This reduce the dependencies and possible also avoid duplicated versions where some package don't use the same version range for the xtend package...

Original error message is `l is not a function` pointing to the following minified code: ```javascript f.setImmediate="function"===typeof r?r:function(a){var b=D++,c=2>arguments.length?!1:m.call(arguments,1);n[b]=!0;l(function(){n[b]&&(c?a.apply(null,c):a.call(null),f.clearImmediate(b))});return b} ``` After generating a not minified file, I found the...

Need to update the `quick` regex to handle this somehow… Unfortunately just escaping `$` doesn't work because $ is not a word character—the word boundaries don't match on `$(`.

When I use `$` for variable name it is not replaced. Most likes is that `$` breaks regexpr rule.

bug

This is a proposal to satisfy https://github.com/substack/node-browserify/issues/1189

Part of multiple pull-requests, so acorn options can flow like: insert-module-globals -> lexical-scope->astw Also see: https://github.com/substack/lexical-scope/pull/23 https://github.com/substack/astw/pull/11

Note: self is the same as window, except in workers (where there is no window). In either case they are likely to reference the global object, but it would be...

Node provides the `GLOBAL` variable as well as `global`. Browserify, thus, should support this also. Forgive me if I went about this the wrong way; I'm not thoroughly familiar with...