@riotjs/compiler
Advanced tools
Comparing version 4.2.6 to 4.3.0
# Compiler Changes | ||
### v4.3.0 | ||
- Add support for dynamic import | ||
### v4.2.6 | ||
@@ -4,0 +7,0 @@ - Fix expression parts issues https://github.com/riot/riot/issues/2701 |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.2.6", | ||
"version": "4.3.0", | ||
"description": "Compiler for riot .tag files", | ||
@@ -13,3 +13,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"prepare": "npm i pug@2.0.3 node-sass@4.9.4 @babel/core@7 @babel/preset-env@7 --no-save", | ||
"prepare": "npm i pug@2.0.3 node-sass@4.12.0 @babel/core@7 @babel/preset-env@7 --no-save", | ||
"lint": "eslint src/ test/ build/", | ||
@@ -38,4 +38,4 @@ "cov": "nyc report --reporter=text-lcov | coveralls", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.3", | ||
"eslint": "^5.16.0", | ||
"coveralls": "^3.0.4", | ||
"eslint": "^6.0.0", | ||
"eslint-config-riot": "^2.0.0", | ||
@@ -45,3 +45,3 @@ "esm": "^3.2.25", | ||
"nyc": "^14.1.1", | ||
"rollup": "^1.13.1", | ||
"rollup": "^1.16.2", | ||
"rollup-plugin-alias": "^1.5.2", | ||
@@ -51,3 +51,3 @@ "rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"rollup-plugin-node-resolve": "^5.0.1", | ||
"rollup-plugin-node-resolve": "^5.0.4", | ||
"shelljs": "^0.8.3" | ||
@@ -62,5 +62,6 @@ }, | ||
"dependencies": { | ||
"@riotjs/dom-bindings": "^4.1.1", | ||
"@riotjs/dom-bindings": "^4.2.2", | ||
"@riotjs/parser": "^4.0.1", | ||
"acorn": "^6.1.1", | ||
"acorn-dynamic-import": "^4.0.0", | ||
"cumpa": "^1.0.1", | ||
@@ -67,0 +68,0 @@ "curri": "^1.0.1", |
@@ -0,2 +1,4 @@ | ||
// TODO: to remove when https://github.com/acornjs/acorn/pull/834 will be merged | ||
import {Parser} from 'acorn' | ||
import dynamicImport from 'acorn-dynamic-import' | ||
import {parse} from 'recast' | ||
@@ -14,3 +16,3 @@ | ||
parse(source, opts) { | ||
return Parser.parse(source, { | ||
return Parser.extend(dynamicImport).parse(source, { | ||
...opts, | ||
@@ -17,0 +19,0 @@ ecmaVersion: 2019 |
Sorry, the diff of this file is too big to display
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
1456095
36999
10
+ Addedacorn-dynamic-import@^4.0.0
+ Addedacorn-dynamic-import@4.0.0(transitive)
Updated@riotjs/dom-bindings@^4.2.2