1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Description: fix acorn-walk call
Author: Yadd <yadd@debian.org>
Forwarded: no
Last-Update: 2022-12-01
--- a/packages/weex-template-compiler/build.js
+++ b/packages/weex-template-compiler/build.js
@@ -4577,7 +4577,7 @@
// this will be preserved during build
// $flow-disable-line
var acorn = require('acorn'); // $flow-disable-line
-var walk = require('acorn/dist/walk'); // $flow-disable-line
+var walk = require('acorn-walk'); // $flow-disable-line
var escodegen = require('escodegen');
function nodeToBinding (node) {
--- a/src/platforms/weex/util/parser.js
+++ b/src/platforms/weex/util/parser.js
@@ -5,7 +5,7 @@
// this will be preserved during build
// $flow-disable-line
const acorn = require('acorn') // $flow-disable-line
-const walk = require('acorn/dist/walk') // $flow-disable-line
+const walk = require('acorn-walk') // $flow-disable-line
const escodegen = require('escodegen')
export function nodeToBinding (node: Object): any {
|