Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
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 (2)
1 Reply
mek
Employee
Employee

Hi,

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