Babel Coder Babel Coder https://www.babelcoder.com circle.js triangle.jsmain.js ES MODULE export const DEFAULT_COLOR = ‘white‘ class Circle { } export const DEFAULT_COLOR = ‘white‘ class Triangle { } import * as circle from 'circle' import * as triangle from 'triangle' circle.DEFAULT_COLOR triangle.DEFAULT_COLOR Named export
33.
Babel Coder Babel Coder https://www.babelcoder.com ESMODULE circle.js triangle.js export const DEFAULT_COLOR = ‘white‘ export default class Circle { } export const DEFAULT_COLOR = ‘white‘ export default class Triangle { } main.js import Circle from 'circle' import Triangle from 'triangle' Default export