storybookjs / telejson

🛰 JSON parse & stringify with support for cyclic objects, functions, dates, regex, infinity, undefined, null, NaN, Classes, Instances
MIT License
169 stars 29 forks source link

Publish an ESM version to npm #65

Closed eirslett closed 3 years ago

eirslett commented 3 years ago

Related to https://github.com/storybookjs/storybook/issues/14910

TeleJSON breaks with Vite 2.3.x (Used in storybook-builder-vite) because TeleJSON is only published to npm as a CJS module. Would it be possible to double-publish this library - like Storybook - so that its source code is TypeScript, but transpiled and published to npm both as CJS and ESM?