Slide 27
Slide 27 text
実際に作ってみた
実際に作ってみた
ESM(.mjs) / Babel
CJS
https://github.com/shimataro/hell-word
npm install @shimataro/hell-word
import foo, {bar} from "@shimataro/hell-word";
foo(); // "hell, word"
bar(); // "地獄の言葉"
const {default: foo, bar} = require("@shimataro/hell-word");
foo(); // "hell, word"
bar(); // "地獄の言葉"