Skip to content

throw Error Unrecognized option 'onwarn' when loader 3.0.0 #104

Closed
@DingRui12138

Description

@DingRui12138

svelte/loader v3.0.0

There is 'TODO anything?' at index.js line 123.

{
  test: /\.svelte$/,
  exclude: /node_modules/,
  use: {
    loader: 'svelte-loader',
    options: {
      emitCss: true,
      onwarn,
      style: sass({}, {name: 'scss'}),
    },
  },
},

onwarn will be ignore.

Also, you forget to add onwarn to valid_options at svelte/compiler line 23800.

My english is so bad, I'm sorry. Do you understand me :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Conduitry@DingRui12138

      Issue actions

        throw Error `Unrecognized option 'onwarn' ` when loader 3.0.0 · Issue #104 · sveltejs/svelte-loader