Skip to content

Commit

Permalink
fix: resolve module paths
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Feb 15, 2025
1 parent 92ac661 commit 2adfb54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synaptic-simulations/mach",
"version": "1.2.0",
"version": "1.2.1",
"description": "The last MSFS instrument bundler you'll ever need.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const resolve = (options: { [module: string]: string }): Plugin => ({
name: "mach-resolve",
setup(build) {
build.onResolve({ filter: new RegExp(`^(${Object.keys(options).join("|")})$`) }, (args) => ({
path: options[args.path],
path: path.resolve(options[args.path]),
}));
},
});
Expand Down

0 comments on commit 2adfb54

Please sign in to comment.