2022 å¹´ç¾å¨ãNode.js çé㯠ESM (ES Module) ã¸ã®ç§»è¡ã®é渡æã§ãããç¹ã«æ¢åããã¸ã§ã¯ãã«ããã¦ã¯ CJS (CommonJS) æ§æã§ãããã¨ãã¾ã ã¾ã å¤ããã¾ããPure ESM 㪠npm ããã±ã¼ã¸ã¯ãCSJ ããã¸ã§ã¯ãããã®å©ä¾¿æ§ãæªããdynamic import ãå¿ é ã§éåæåãå¼·ããããã TypeScript ã®è¨å®å¤æ´ãå¿ è¦ã ã£ããã¨é¢åãå¢ããã ãããªç¶æ³ã®ãããåºã使ãããã npm ããã±ã¼ã¸ãå ¬éããå ´åãimportã§ãrequireã§ãå©ç¨ã§ãããã dual package æ§æãåããããªãããå®çªææ³ã確ç«ãã¦ããã¨ã¯è¨ãããæå¤ã¨é¢åãå¤ããããè¦ãã®ã¯ãtscãesbuildç㧠ESM ç¨ã¨ CJS ç¨ã®è¨å®ãã¡ã¤ã«ãç¨æãã¦ããããå¥ãã£ã¬ã¯ããªã«åºåããããã±ã¼ã¸ã«ä¸¡æ¹å梱ã㦠conditional ex
{{#tags}}- {{label}}
{{/tags}}