aboutsummaryrefslogtreecommitdiff
path: root/test/tests/compiler-plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/compiler-plugin.js')
-rw-r--r--test/tests/compiler-plugin.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tests/compiler-plugin.js b/test/tests/compiler-plugin.js
new file mode 100644
index 000000000..e7068fae3
--- /dev/null
+++ b/test/tests/compiler-plugin.js
@@ -0,0 +1,4 @@
+"format cjs";
+exports.translate = function(load) {
+ return 'require("tests/global.js"); exports.extra = "yay!"; \n' + load.source;
+}