webpack/examples/harmony-interop/fs.js

8 lines
257 B
JavaScript
Raw Permalink Normal View History

// an example CommonJs module
// content is omitted for brevity
exports.readFile = function() {};
// using module.exports would be equivalent,
// webpack doesn't care which syntax is used
2018-02-26 10:28:07 +08:00
// AMD modules are also possible and equivalent to CommonJs modules