This library was originally created as a blend between module syntax and non-module syntax. As such, the code wasn't always consistent, and the module's export was all transpiled code (i.e. the unaltered code was not used).
This PR brings all code inline so that the library is not a module, and changes the exports so that the unmodified code is used as its primary export. The transpiled code is still included, and is available in the dist directory (which is also the target for the browser element in package.json).
The original library code can now be used as a dependency in both modules and non-modules.
Related Issue
N/A
Motivation and Context
Simplify debugging and troubleshooting by providing raw code as the export. Increase consistency and ensure that the library is not a module.
How Has This Been Tested?
Unit tests and e2e tests pass locally.
Screenshots (if appropriate):
N/A
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
Description
This library was originally created as a blend between module syntax and non-module syntax. As such, the code wasn't always consistent, and the module's export was all transpiled code (i.e. the unaltered code was not used).
This PR brings all code inline so that the library is not a module, and changes the exports so that the unmodified code is used as its primary export. The transpiled code is still included, and is available in the
dist
directory (which is also the target for thebrowser
element inpackage.json
).The original library code can now be used as a dependency in both modules and non-modules.
Related Issue
N/A
Motivation and Context
Simplify debugging and troubleshooting by providing raw code as the export. Increase consistency and ensure that the library is not a module.
How Has This Been Tested?
Unit tests and e2e tests pass locally.
Screenshots (if appropriate):
N/A
Types of changes
Checklist: