示例工程 16-mini-bundler

16-mini-bundler/01-mini-bundler/src/cycle-a.js

javascript · 0.1 KB

运行:16 · 迷你 bundler

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

// src/cycle-a.js —— A 依赖 B
exports.name = 'a';
 
const b = require('./cycle-b');
 
exports.bName = b.name;
exports.bSawA = b.sawA;