Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
fduchmann
Partner - Contributor III
Partner - Contributor III

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