aboutsummaryrefslogtreecommitdiff
path: root/test/tests/testpkg/json.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/testpkg/json.js')
-rw-r--r--test/tests/testpkg/json.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tests/testpkg/json.js b/test/tests/testpkg/json.js
new file mode 100644
index 000000000..278833a81
--- /dev/null
+++ b/test/tests/testpkg/json.js
@@ -0,0 +1,4 @@
+exports.translate = function(load) {
+ load.metadata.format = 'cjs';
+ return 'module.exports = ' + load.source;
+}; \ No newline at end of file