Skip to content

Commit

Permalink
fix: build script
Browse files Browse the repository at this point in the history
  • Loading branch information
djalmajr committed Mar 24, 2022
1 parent d5be014 commit 6cd0cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ Object.entries(formats).forEach(([ext, fmt]) => {
plugins: [
globPlugin(),
{
name: 'add-mjs',
name: 'add-ext',
setup(build) {
build.onResolve({ filter: /.*/ }, (args) => {
if (args.importer) {
return {
path: args.path + '.js',
path: args.path + ext,
external: true,
};
}
Expand Down

0 comments on commit 6cd0cc9

Please sign in to comment.