Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
302 B
Text
12 lines
302 B
Text
import Hook from '../../index.js'
|
|
import { foo } from '../fixtures/require-root.js'
|
|
import { strictEqual } from 'assert'
|
|
|
|
Hook((exports, name) => {
|
|
if (name.endsWith('require-root.js')) {
|
|
strictEqual(exports.foo, 'something')
|
|
exports.foo += '-wrap'
|
|
}
|
|
})
|
|
|
|
strictEqual(foo, 'something-wrap')
|