cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Supports browser field in package.json

Open shrinktofit opened this issue 3 years ago • 3 comments

There are still many npm packages using browser field in package.json to declare the browser edition entries of the package. Developers are eagerly looking forward to such support.

See also: https://forum.cocos.org/t/topic/119511/114

Formal description of browser field: https://github.com/defunctzombie/package-browser-field-spec

shrinktofit avatar Jun 06 '22 05:06 shrinktofit

Unit Test https://github.com/cocos/creator-programming/pull/16/files

PPpro avatar Jun 06 '22 06:06 PPpro

The following is some popular packages that use browser field:

  • https://github.com/axios/axios (as one of npm top 10 packages)

@PPpro They're also good points to verify our implementation.

shrinktofit avatar Jun 06 '22 09:06 shrinktofit

we reajust the priority of this issue, for there are much more inserted task

PPpro avatar Nov 11 '22 02:11 PPpro