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
Here has a problem while a string including keywords like __filename, __dirname or import.meta.data, the path in string is handled too. See the example in tsup.config.ts using banner: egoist/tsup#719.
So maybe we need to add logic to exclude path in string. But regexp match seems hard to judge if the path reference is in string or not. Is there any quick way to fix this problem? AST may do, but it complicates the logic of the plugin.
The text was updated successfully, but these errors were encountered:
I find bundle-require uses a custom esbuild plugin to handle path, source code is:
Here has a problem while a string including keywords like
__filename
,__dirname
orimport.meta.data
, the path in string is handled too. See the example intsup.config.ts
usingbanner
: egoist/tsup#719.So maybe we need to add logic to exclude path in string. But regexp match seems hard to judge if the path reference is in string or not. Is there any quick way to fix this problem? AST may do, but it complicates the logic of the plugin.
The text was updated successfully, but these errors were encountered: