Giter Club home page Giter Club logo

Comments (4)

graphnode avatar graphnode commented on August 23, 2024

I wonder if the p5 dependency is really necessary.
The engine barely used it.

from 24a2.

qqoen avatar qqoen commented on August 23, 2024

So I managed to make it work with rollup - https://github.com/qqoen/24a2/commit/379524841fa4c5eb526486b437936813b4f7f14b (upd. https://github.com/qqoen/24a2/commit/db1e9571ac0107b57a6fbba7bf9d8cdd5524e3ac), but there are currently some differences with original API as rollup IIFE bundling requires global variable where all the exports could be stored (currently set as $24a2). I haven't touched example files yet, but tested on my own project, it seems to work fine with modules and with global context as well.

from 24a2.

qqoen avatar qqoen commented on August 23, 2024

I wonder if the p5 dependency is really necessary.
The engine barely used it.

Dropping p5 would be nice, as it also makes it more minimalistic. Currently I figured out how to set it as external dependency in rollup, so import could be omitted if needed, but library itself still needs to be compiled as a module to be compatible with import syntax.

from 24a2.

jamesroutley avatar jamesroutley commented on August 23, 2024

Hi both - thanks very much for opening this issue!

This is definitley on my radar - to be completely honest I'm not super familiar with setting modules up. I'll do some reading and work something out.

Dropping P5 (or hiding it from the user) makes sense to me - I've opened #12

from 24a2.

Related Issues (14)

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.