Skip to content

Commit

Permalink
perf: remove source-map-support as node supports `--enable-source-m…
Browse files Browse the repository at this point in the history
…aps`
  • Loading branch information
pi0 committed Aug 8, 2023
1 parent 8a44d19 commit 9ba8fe9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
"semver": "^7.5.4",
"serve-placeholder": "^2.0.1",
"serve-static": "^1.15.0",
"source-map-support": "^0.5.21",
"std-env": "^3.3.3",
"ufo": "^1.2.0",
"uncrypto": "^0.1.3",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

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

4 changes: 0 additions & 4 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ export const getRollupConfig = (nitro: Nitro): RollupConfig => {

const env = unenv.env(nodePreset, builtinPreset, nitro.options.unenv);

if (nitro.options.sourceMap) {
env.polyfill.push("source-map-support/register.js");
}

const buildServerDir = join(nitro.options.buildDir, "dist/server");
const runtimeAppDir = join(runtimeDir, "app");

Expand Down

0 comments on commit 9ba8fe9

Please sign in to comment.