Qlik Community

Ask a Question

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
Become an analytics expert with Qlik's new 15 week course: Applied Data Analytics using Qlik Sense. READ MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
fduchmann
Partner
Partner

How to load es6 modules in a Qlik Sense Extension with AngularJS

Hi Qlik-Community,

is there any possibility to load a es6 Module like shown below as a dependency in a Qlik Sense Extension?

import { module1, module2 } from 'lib';
export function diag(x, y) {
    return sqrt(square(x) + square(y));
}

Right now only dependencies as a AMD Module can be loaded like this:

define(['module1', ',module2'], function(module1, module2) {
  console.log(module1.setName());
});

Best regards,

Frank 

Labels (3)
1 Reply
mek
Employee
Employee

Hi,

That's not possible today, you would need to transpile that to UMD or AMD format