-
-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
I'd like to propose using ESM imports and a plugin system as an addition (or replacement) for custom builds. To me, this has the following advantages:
- Much more flexible, no re-builds required when needs change
- No build tools required for end-users, resulting in much faster installs
- Everyone uses the same release code, making it reproducable and easier to debug
- More in-line of how other tools work, treeshaking is expected to work without manual tinkering
The API could look something like this:
import ExifReader, { png, jpeg, DateTime, GPSCoordinates } from 'exifreader';
const exifReader = new ExifReader().use(png, jpeg, DateTime, GPSCoordinates);
const tags = await exifReader.load(file);Since we only import some modules, the build processor can exclude the unused ones.
LaserUnicorns and stevenkissack
Metadata
Metadata
Assignees
Labels
No labels