You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By now p5-manager can only compile ES6 syntax into ES5, file by file, which is convenient for small sketch.
However when developing larger project, we need more advantage of ES6 and modular javascript features. e.g. import or require some third party libraries, or separate you whole big sketch into components/modules for better management and reuse.
Following features are what I imagine / take into consideration for next release :
p5 generate -w to generate instance mode template, and webpack configs with Babel loader, in ES6 syntax of course. So that import and exports are available for browser!!!
Independent webpack.config.js for each project?
Can webpack watch all files at the same time while run with different config file?
Keep p5 generate --es6 for those only need the ES6 syntax features in global mode.
The text was updated successfully, but these errors were encountered:
Hi @chiunhau I've just started using p5-manager today, thanks for the great work!
Was just about to start a feature request and offer help for the import/require functionality.
My use case is to create a bundled standalone .js to offer drop–in plugins for UI flourishes.
Planning on adding this with browserify, as it only concerns itself with the bundling of the javascript.
Have started on a fork as I need this piece of functionality ASAP and will report back with progress. Hope it will be of help and am happy to look into further extending the functionality too :)
By now p5-manager can only compile ES6 syntax into ES5, file by file, which is convenient for small sketch.
However when developing larger project, we need more advantage of ES6 and modular javascript features. e.g.
import
orrequire
some third party libraries, or separate you whole big sketch into components/modules for better management and reuse.Following features are what I imagine / take into consideration for next release :
p5 generate -w
to generate instance mode template, and webpack configs with Babel loader, in ES6 syntax of course. So thatimport
andexports
are available for browser!!!webpack.config.js
for each project?p5 generate --es6
for those only need the ES6 syntax features in global mode.The text was updated successfully, but these errors were encountered: