Discussion 1. CommonJS 㯠tree shaking ãããªã â»è¿½è¨ãä¿®æ£ãã ãã¹ã¦ã®ã¢ã¸ã¥ã¼ã«ãã³ãã©ã¼ãã import { isEqual } from 'lodash'; ã tree shaking ã§ãã¾ããã§ãããããã¯ã CommonJS ã¯éçã«è§£æãããã¨ãã§ããªãå°é£ã¾ãã¯ä¸å¯è½ï¼2018/06/15 ä¿®æ£ï¼ãªããã§ãã ä¾ãã°ã ES Modules ã® import, export ã«å¯¾å¿ãã CommonJS ã® requireã exports ã¯ããããã以ä¸ã®ããã«åçã«æ¸ããã¨ã許容ããã¦ãã¾ãã require const fooOrBar = require(Math.random() < 0.5 ? 'foo' : 'bar'); exports for(const name of ['foo', 'bar']) { ex
{{#tags}}- {{label}}
{{/tags}}