ããã«ã¡ã¯ãããã³ãã¨ã³ãã¨ãã¹ãã¼ãã®å¹³éï¼@shisama_ï¼ã§ãã ããã³ãã¨ã³ãã¨ãã¹ãã¼ããã¼ã ã§ã¯æ¥åæéã® 30 % ã®æéã§æè¡æ¢ç©¶ãè¡ã£ã¦ãã¾ãã ä»åã¯æ¢ç©¶ããæè¡ã®ä¸ãã Node.js ã® ES Modulesï¼ä»¥ä¸ ESMï¼ã«ã¤ãã¦ã¨ Dual Package (CommonJS/ES Modules) ã«å¯¾å¿ãã npm ããã±ã¼ã¸ã®éçºã«ã¤ãã¦ç´¹ä»ãã¾ãã ES Modules ã®ç¹å¾´ ESM ã¯ãã©ã¦ã¶äºæ ESM 㯠Strict ã¢ã¼ã ESM ã¯éåæ ESM ã¯éç解æå¯è½ Node.js ã® ESM 対å¿ã«ã¤ã㦠Dual Packageï¼CJS/ESMï¼ã«å¯¾å¿ãã npm ããã±ã¼ã¸ã®éçº Conditional Exports ã«ãããã¡ã¤ã«ã®æå® .mjs 㨠.cjs require ãªã© CJS ç¹æã®æ©è½ã使ã ESMãã CJS ãã¡
{{#tags}}- {{label}}
{{/tags}}