-
Notifications
You must be signed in to change notification settings - Fork 11
Minimize Tone.js Imports #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
have answered some of these questions, library now imports only what is necessary from Tone, but if anyone would like to work on minimizing the library through more efficient imports or build solution, that would be superb 🥺 |
Adding the visualizer to the rollup we can generate the bundle report visualization import { visualizer } from 'rollup-plugin-visualizer';
...
mangle: false,
format: {
beautify: true,
comments: true,
indent_level: 2,
wrap_iife: true
}
}),
visualizer({
filename: 'dist/bundle-report.html',
title: 'p5.sound Bundle Visualizer',
gzipSize: true,
brotliSize: true,
open: true
}),
],
... I've added it here for us to see it
Not sure if there's space for more efficient imports rn, because I think the current approach using like |
can I import specific modules from tone in each class instead of the whole library each time?
Would that make the library smaller?
Would it be faster?
Is there a case to be made that it is more legible that way?
The text was updated successfully, but these errors were encountered: