Comparing version 4.0.5 to 4.0.6
# CHANGELOG | ||
### 4.0.5 | ||
* Fixed bug with custom tag importing. | ||
* Fixed bug in loop with options. | ||
### 4.0.3 | ||
@@ -4,0 +9,0 @@ * A lot of refactoring in compiler and runtime. |
@@ -23,3 +23,3 @@ 'use strict'; | ||
if (options.asModule) { | ||
return (0, _sourceNode.sourceNode)(node.loc, ['var Monkberry = require(\'monkberry\');\n', figure.generate(), '\n', 'exports.default = ' + figure.name + ';\n']); | ||
return (0, _sourceNode.sourceNode)(node.loc, ['var Monkberry = require(\'monkberry\');\n', figure.generate(), '\n', 'module.exports = ' + figure.name + ';\n']); | ||
} else { | ||
@@ -26,0 +26,0 @@ return (0, _sourceNode.sourceNode)(node.loc, [figure.generate(), '\n', 'window.' + figure.name + ' = ' + figure.name + ';\n']); |
@@ -18,3 +18,3 @@ 'use strict'; | ||
// TODO: Add support for ES2015 imports. | ||
figure.root().addImport((0, _sourceNode.sourceNode)(node.loc, 'var ' + node.identifier.name + ' = require(' + node.path.value + ').default;')); | ||
figure.root().addImport((0, _sourceNode.sourceNode)(node.loc, 'var ' + node.identifier.name + ' = __requireDefault(require(' + node.path.value + '));')); | ||
@@ -21,0 +21,0 @@ figure.addToScope(node.identifier.name); |
@@ -50,2 +50,3 @@ 'use strict'; | ||
sn.add('\n'); | ||
sn.add('function __requireDefault(obj) { return obj && obj.__esModule ? obj.default : obj; }\n'); | ||
} | ||
@@ -52,0 +53,0 @@ |
{ | ||
"name": "monkberry", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "Monkberry is a JavaScript library for building web user interfaces", | ||
@@ -5,0 +5,0 @@ "bin": "bin/monkberry", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
217175
3363