mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
20 lines
322 B
TypeScript
20 lines
322 B
TypeScript
// #41422, based on prettier's exports
|
|
// @noEmit: true
|
|
// @checkJS: true
|
|
|
|
// @filename: first.js
|
|
const hardline = { type: "hard" }
|
|
module.exports = {
|
|
hardline
|
|
}
|
|
|
|
|
|
// @filename: second.js
|
|
module.exports = {
|
|
nested: require('./first')
|
|
};
|
|
|
|
// @filename: main.js
|
|
const { hardline } = require('./second').nested;
|
|
hardline
|