rollup-plugin-jscc icon indicating copy to clipboard operation
rollup-plugin-jscc copied to clipboard

Exclude function not properly working

Open jessielaf opened this issue 3 years ago • 1 comments

Hi,

First of all thanks for the plugin! It looks very promising. I am trying to use this with my vue plugin but I am getting a error:

[!] (plugin jscc) Error: Could not load C:\Users\Jessie\projects\vue-scan-field\src\ScanField.vue?rollup-plugin-vue=script.js (imported by C:\Users\Jessie\projects\vue-scan-field\src\ScanField.vue): ENOENT: no such file or directory, open 'C:\Users\Jessie\projects\vue-scan-field\src\ScanField.vue?rollup-plugin-vue=script.js'

This can be because the plugin does not support vue. I pressume this because .vue is not in the extensions list. I had decided to put *.vue in the exclude list but this did not work. This is how my code looks:

    jscc({
      values: { _FRAMEWORK: 'quasar' },
      exclude: '*.vue'
    }),

But I keep getting the same error.

jessielaf avatar May 13 '21 13:05 jessielaf

I have now added this and it works properly now. Is this the way it is supposed to work?

    jscc({
      values: { _FRAMEWORK: 'vuetify' },
      include: '*/core.js',
      exclude: '*'
    }),

jessielaf avatar May 13 '21 13:05 jessielaf