[add] same import primitive

This commit is contained in:
2025-08-25 16:52:49 +01:00
parent 51a859adf1
commit 09adbb78f1
5 changed files with 53 additions and 26 deletions

9
libtest/index.cjs Normal file
View File

@@ -0,0 +1,9 @@
// import {safeImport} from '../lib/safeImport.cjs'
const {safeImport} = require('../lib/safeImport.cjs')
const classnames = safeImport('classnames','test_src/index.cjs');
console.log(classnames('hello',"bruh"));