Skip to content

Commit

Permalink
fix: allow importing utils from nitropack/runtime (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 25, 2024
1 parent eca05c8 commit 7f61efe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"types": "./dist/cli/index.d.mts",
"import": "./dist/cli/index.mjs"
},
"./runtime": {
"types": "./dist/runtime/index.d.ts",
"import": "./dist/runtime/index.mjs"
},
"./runtime/*": {
"types": "./dist/runtime/*.d.ts",
"import": "./dist/runtime/*.mjs"
Expand Down
1 change: 1 addition & 0 deletions runtime.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./dist/runtime/index";
1 change: 1 addition & 0 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ export const plugins = [
"~~",
"@@/",
"virtual:",
"nitropack/runtime",
...(nitro.options.experimental.wasm
? [(id) => id.endsWith(".wasm")]
: []),
Expand Down

0 comments on commit 7f61efe

Please sign in to comment.