Skip to content

Commit

Permalink
CommonJS example (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Oct 4, 2017
1 parent f5d092c commit 59b9a06
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/require/commonjs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* The scope is 'private'.
* Imports can be realized with require()
* Exports are made through the assignment to module.exports.
*/
"use strict";

var data = require("data.json");

module.exports = {
type: "commonjs",
data: data
};

0 comments on commit 59b9a06

Please sign in to comment.