Custom Webix Build

edited June 4 in Technical questions

Hi,

Following the instructions for a custom Webix build, the output from "npm run build" is a bit different from the distributed webix.js

For example it has a large section

var REACT_ELEMENT_TYPE;
function _jsx(type, props, key, children) {
...

and functions are declared as

exports.extend = function extend(base, source, force) {

instead of

exports.extend = function (base, source, force) {

What do I need to do to get the same build output as the distributed one?

Thanks
Emil

Tagged:

Comments

  • Update rollup.config.js

    plugins.push(babel({
        exclude: "node_modules/**",
        presets: [
            [
                "@babel/preset-env",
                {
                    targets: { "ie": "8" }
                }
            ]
        ]
    }));
    

    to

    plugins.push(babel({
        exclude: "node_modules/**",
        presets: [
            [
                "@babel/preset-env",
                {
                    loose: true,
                    targets: { "ie": "8" },
                    exclude: [ "transform-function-name" ]
    
                }
            ]
        ]
    }));
    

    Thanks Maksim.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion