Giter Club home page Giter Club logo

Comments (5)

FredKSchott avatar FredKSchott commented on July 22, 2024

Any interest in helping us try something out? :)

The tool was built for ESM top-level dependencies, with a goal of supporting any CommonJS/AMD/RequireJS transitive/sub- dependencies. So if this is a sub-dependency of your project, it should just work.

If you want to rely on this non-ESM file directly, you just have to add the exact file path to your whitelist. Something like:

"whitelist": [ "knockout-jqautocomplete/build/knockout-jqAutocomplete.js"]

Can you try that out and let me know how it works? AMD/UMD were never meant to be supported, but because they have no import statements to worry about I think that we get their support for free.

from snowpack.

jarrodek avatar jarrodek commented on July 22, 2024

I tried adding this:

"whitelist": [
      "marked/index.js",
      "@polymer/marked-element/marked-import.js"
]

but it makes no difference.

from snowpack.

FredKSchott avatar FredKSchott commented on July 22, 2024

can you share your entire package.json? I want to be sure that you're properly defining it (you can check the README) to be sure. If you have properly configured it, at the very least @pika/web should fail, and not ignore it.

from snowpack.

jarrodek avatar jarrodek commented on July 22, 2024

Sure, it's here: https://github.com/advanced-rest-client/arc-electron/blob/develop/package.json#L269

Also, my comment was supposed to be added to this issue: PolymerElements/marked-element#100
I had too many tabs opened...

from snowpack.

pika-ci avatar pika-ci commented on July 22, 2024

🚚 This issue has been moved! Continue the discussion on our project discussion board:
https://pika.dev/packages/@pika/web/discuss/1084

from snowpack.

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.