mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
- Keep CommonJS packages eligible for static compilation when export prologues precede require calls. - Preserve initialization order and early-access safeguards with frontend and native regression coverage. Fixes #37 Co-authored-by: vini <91087061+vinikjkkj@users.noreply.github.com>
19 lines
381 B
JavaScript
19 lines
381 B
JavaScript
'use strict';
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
exports.describe = describe;
|
|
module.exports.renamed = other;
|
|
const browser = require('./dependency.cjs');
|
|
console.log('member: initialized');
|
|
|
|
function describe() {
|
|
return helper();
|
|
}
|
|
|
|
function helper() {
|
|
return 'browser:' + browser.name;
|
|
}
|
|
|
|
function other() {
|
|
return browser.name.toUpperCase();
|
|
}
|