File tree 2 files changed +16
-7
lines changed
src/presets/netlify/legacy/runtime
2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 1
1
import "#nitro-internal-pollyfills" ;
2
2
import "./_deno-env-polyfill" ;
3
- import type { Handler } from "@netlify/functions/dist/main " ;
3
+ import type { Handler } from "@netlify/functions" ;
4
4
import { getRouteRulesForPath } from "nitropack/runtime/internal" ;
5
5
import { withQuery } from "ufo" ;
6
6
import { lambda } from "./netlify-lambda" ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
+ /* Base options: */
3
4
"esModuleInterop" : false ,
4
5
"allowSyntheticDefaultImports" : true ,
5
6
"skipLibCheck" : true ,
6
- "lib" : [" WebWorker" , " DOM.Iterable" ],
7
- "target" : " ESNext" ,
8
- "module" : " ESNext" ,
9
- "moduleResolution" : " Node" ,
10
- "strict" : true ,
7
+ "target" : " es2022" ,
11
8
"allowJs" : true ,
12
9
"resolveJsonModule" : true ,
10
+ "moduleDetection" : " force" ,
11
+ "isolatedModules" : true ,
12
+ "verbatimModuleSyntax" : true ,
13
+ /* Strictness */
14
+ "strict" : true ,
15
+ // TODO: enable noUncheckedIndexedAccess in subsequent PR
16
+ // "noUncheckedIndexedAccess": true,
17
+ "forceConsistentCasingInFileNames" : true ,
18
+ "noImplicitOverride" : true ,
19
+ /* If NOT transpiling with TypeScript: */
20
+ "module" : " preserve" ,
21
+ "noEmit" : true ,
13
22
"jsx" : " preserve" ,
14
23
"jsxFactory" : " h" ,
15
24
"jsxFragmentFactory" : " Fragment" ,
16
- "noEmit " : true ,
25
+ "lib " : [ " es2022 " , " webworker " , " dom.iterable " ] ,
17
26
"paths" : {
18
27
// CLI
19
28
"nitro/cli" : [" ./src/cli" ],
You can’t perform that action at this time.
0 commit comments