melody-compiler
Advanced tools
Comparing version 1.2.0-commit.e09ceb68 to 1.2.0-commit.e2b2efe2
{ | ||
"name": "melody-compiler", | ||
"version": "1.2.0-commit.e09ceb68", | ||
"version": "1.2.0-commit.e2b2efe2", | ||
"description": "", | ||
@@ -17,3 +17,3 @@ "main": "./lib/index.js", | ||
"lodash": "^4.12.0", | ||
"melody-code-frame": "1.2.0-commit.e09ceb68", | ||
"melody-code-frame": "1.2.0-commit.e2b2efe2", | ||
"random-seed": "^0.3.0" | ||
@@ -35,6 +35,6 @@ }, | ||
"devDependencies": { | ||
"melody-extension-core": "1.2.0-commit.e09ceb68", | ||
"melody-plugin-idom": "1.2.0-commit.e09ceb68", | ||
"melody-extension-core": "1.2.0-commit.e2b2efe2", | ||
"melody-plugin-idom": "1.2.0-commit.e2b2efe2", | ||
"rollup-plugin-babel": "^2.6.1" | ||
} | ||
} |
@@ -249,2 +249,12 @@ /** | ||
exit(path) { | ||
const sourceType = path.node.source.type; | ||
if (sourceType !== 'StringLiteral') { | ||
this.error( | ||
'Dynamic includes are not supported', | ||
path.node.loc.start, | ||
'The Include Statement expected a StringLiteral but got a ' + | ||
sourceType + | ||
'. Includes only support static strings as argument.' | ||
); | ||
} | ||
const includeName = this.addDefaultImportFrom( | ||
@@ -251,0 +261,0 @@ path.node.source.value, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
206241
5013
+ Addedmelody-code-frame@1.2.0-commit.e2b2efe2(transitive)
- Removedmelody-code-frame@1.2.0-commit.e09ceb68(transitive)