You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Want to set the browser field to either the dist/handlebars file or lib/handlebars to avoid issues with require.extension code being included on the client.
This would be incredibly useful for circumstances where we don't have access to a webpack.config.
For example, import * as Handlebars from 'handlebars'; within an angular project causes the fs not found issue because it is importing the wrong build. It should be pointing to dist/handlebars.min.js.
Using import * as Handlebars from 'handlebars/dist/handlebars'; causes typedef errors.
I've opened a PR to add browser to the package.json#1540. It's hard to write a test for this kind of change I know it resolves issues in my use case but welcome ideas on how to more reliably test it.
Want to set the
browser
field to either the dist/handlebars file or lib/handlebars to avoid issues with require.extension code being included on the client.Should look at using
browser
as an object rather than a string:https://github.com/defunctzombie/node-uuid/blob/master/package.json#L30
This might let us handle the runtime and the full library.
The text was updated successfully, but these errors were encountered: