hyperbrew / vite-cep-plugin

A Vite plugin to build Adobe CEP Extension Panels
MIT License
16 stars 16 forks source link

TypeError: Cannot destructure property 'iife' of 'undefined' #15

Closed tb-b closed 1 year ago

tb-b commented 1 year ago

Running into this error on the latest 0.3.4 version

TypeError: Cannot destructure property 'iife' of 'undefined' as it is undefined.
    at jsxInclude (/***/node_modules/vite-cep-plugin/lib/index.js:328:23)
justintaylor-dev commented 1 year ago

Set iife to true in your vite.es.config.ts :

      jsxInclude({
        iife: true,
        globalThis: GLOBAL_THIS,
      }),