小编SSF*_*FHG的帖子

选项 importNotUsedAsValues 已弃用

有人可以帮我处理这个jsonfig.json文件以实现一个精简的项目吗?它说该importsNotUsedAsValues选项应该替换为verbatimModuleSyntax.

{
  "compilerOptions": {
    "moduleResolution": "Node",
    "target": "ESNext",
    "module": "ESNext",
    /**
     * svelte-preprocess cannot figure out whether you have
     * a value or a type, so tell TypeScript to enforce using
     * `import type` instead of `import` for Types.
     */
    "importsNotUsedAsValues": "error",
    "isolatedModules": true,
    "resolveJsonModule": true,
    /**
     * To have warnings / errors of the Svelte compiler at the
     * correct position, enable source maps by default.
     */
    "sourceMap": true,
    "esModuleInterop": true,
    "skipLibCheck": true, …
Run Code Online (Sandbox Code Playgroud)

svelte

5
推荐指数
1
解决办法
4864
查看次数

标签 统计

svelte ×1