Code Monkey home page Code Monkey logo

Comments (2)

richardmward avatar richardmward commented on May 25, 2024 1

Ended up finding myself back here a little over 2 years later 😄, so thought I'd just note what I have done to get this working in a browser:

Webpack config

plugins: [
    // Removes a critical warning about dynamic dependencies, as it is
    // only relevant to "external functions", which we don't need to use.
    new webpack.ContextReplacementPlugin(/js-feel/, (data) => {
        delete data.dependencies[0].critical;
        return data;
    }),
    // None of these are required for the standalone bit of js-feel to work,
    // so we can safely just ignore them.
    new webpack.IgnorePlugin(/source-map-support|dtrace-provider|xlsx/)
]

Initialisation

// Configure js feel to use the browser console for logging, rather than bunyan
const jsFeel = require("js-feel")();
jsFeel.init({ logger: () => console })
const { feel } = jsFeel;

from feel.

deostroll avatar deostroll commented on May 25, 2024

Hi. Sorry for the late response.

I had run into a similar issue long back. I was trying to make a designer for composing decision graphs. In the process, it seemed natural to have the feel parser logic shared between server and client. I had used webpack then. But I never got around to fixing the webpack problem.

Don't remember what I did. But I am pretty sure there was a server side software that took care of that aspect. Hence that logic was not shared, and consequently not part of the browser client module I was trying to build.

So really sorry I can't help you here with the webpack config. We hope you find a solution.

from feel.

Related Issues (20)

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.