Giter Site home page Giter Site logo

Comments (7)

timstuyckens avatar timstuyckens commented on June 20, 2024

I'll look into it.
I think it might be possible but their will have to be made conventions about your module name
Like:
require( "knockout")
require("ko")

from chromeextensions-knockoutjs.

luv2code avatar luv2code commented on June 20, 2024

I also have this case. I personally use and most projects I've seen use require("knockout") or define(["knockout"], function (ko) { });

from chromeextensions-knockoutjs.

luv2code avatar luv2code commented on June 20, 2024

I think something like this would satisfy 95% of the amd use cases:
https://gist.github.com/luv2code/5274902

from chromeextensions-knockoutjs.

timstuyckens avatar timstuyckens commented on June 20, 2024

Just uploaded a new version of the plugin https://chrome.google.com/webstore/detail/knockoutjs-context-debugg/oddcpmchholgcjgjdnfjmildmlielhof/details?hl=nl&gl=BE
Thanks for the feedback!

from chromeextensions-knockoutjs.

Munter avatar Munter commented on June 20, 2024

I was just wondering. Is there a reason why this extension needs to tap into the knockout library supplied by the user instead of packing its own?

from chromeextensions-knockoutjs.

timstuyckens avatar timstuyckens commented on June 20, 2024

@Munter The "core" part of the extension runs in the context of the page of the user. When you run in that context you get acces to the current selected node ($0). In that context, knockout is already present.
Version conflicts are also avoided this way.

from chromeextensions-knockoutjs.

engyii avatar engyii commented on June 20, 2024

it's now working. thanks. this extension is super useful!

from chromeextensions-knockoutjs.

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.