Git Product home page Git Product logo

Comments (4)

CBDotGuru avatar CBDotGuru commented on June 18, 2024 1

I believe this will fix your build process. I added several options and believe this is the minimal working change, however, if you don't successfully build from this change, just let me know.

Inside of config/webpack/Dist.js add a babel loader rule to include all js files. So around line 57 change:

        this.config.module.rules.push(
            {
                test: /^.((?!cssmodule).)*\.(sass|scss)$/,
                loaders: [
                    { loader: 'style-loader' },
                    { loader: 'css-loader' },
                    { loader: 'sass-loader' }
                ]
            }
        )

to include the babel loader object. The final form should look like the following:

        this.config.module.rules.push(
            {
                test: /^.((?!cssmodule).)*\.(sass|scss)$/,
                loaders: [
                    { loader: 'style-loader' },
                    { loader: 'css-loader' },
                    { loader: 'sass-loader' }
                ]
            },
            {
                test: /\.js$/,
                use: {
                    loader: 'babel-loader',
                    options: {
                        "presets": [
                            "env",
                            "react",
                            "stage-3"
                        ],
                        "plugins": [["transform-class-properties", { "spec": true }], "transform-decorators-legacy"],
                        "babelrc": false
                    }
                }
            }
        )

from zabo-sdk-js.

dragonheaven avatar dragonheaven commented on June 18, 2024

@Hackdom Thank you so much! it works.

from zabo-sdk-js.

CBDotGuru avatar CBDotGuru commented on June 18, 2024

From Discord:

It seems we still have problem with webpack build of Zabo SDK. Adding account to Zabo is working well on dev mode but does not work at all on prod build.

from zabo-sdk-js.

CBDotGuru avatar CBDotGuru commented on June 18, 2024

Issue was unrelated to the build.

from zabo-sdk-js.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.