From 880a1a287c3b7d390d3b43c59b4df87c051fbade Mon Sep 17 00:00:00 2001 From: 59naga Date: Mon, 16 Jul 2018 15:17:04 +0900 Subject: [PATCH] test: add replication test of #61 --- test/spec.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/spec.js b/test/spec.js index 35e72a2..22d1eca 100644 --- a/test/spec.js +++ b/test/spec.js @@ -7,6 +7,15 @@ module.exports = [ exports: 'default-entry' } }, + { + name: 'export default to module.exports using loose mode(#61)', + code: 'export default "default-entry"', + env: { loose: true }, + expected: { + module: 'default-entry', + exports: 'default-entry' + } + }, { name: 'export default to module.exports if only export default using umd', code: 'export default "default-entry"',