mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 06:44:40 +00:00
Make require() compliant with CommonJS Modules/1.1
This commit is contained in:
14
editions/testcommonjs/tiddlers/nested/program.js
Normal file
14
editions/testcommonjs/tiddlers/nested/program.js
Normal file
@@ -0,0 +1,14 @@
|
||||
/*\
|
||||
title: nested/program.js
|
||||
type: application/javascript
|
||||
module-type: library
|
||||
|
||||
Nested test
|
||||
|
||||
\*/
|
||||
|
||||
|
||||
var test = require('test');
|
||||
test.assert(require('a/b/c/d').foo() == 1, 'nested module identifier');
|
||||
test.print('DONE', 'info');
|
||||
|
||||
Reference in New Issue
Block a user