Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
djalmajr committed Apr 17, 2023
1 parent e20e4da commit ca63ae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Object.entries(formats).forEach(([ext, fmt]) => {
name: 'add-ext',
setup(build) {
build.onResolve({ filter: /.*/ }, (args) => {
if (args.importer) {
if (args.importer && args.path.includes('./')) {
return { path: args.path + ext, external: true };
}
});
Expand Down

0 comments on commit ca63ae1

Please sign in to comment.