From 99f19e2ff1e906734973acdbd850ef12d0fb14b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Mon, 5 Nov 2018 11:18:09 +0800 Subject: [PATCH] fix: js file compile --- build/build-components.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-components.js b/build/build-components.js index 164ff0bc4..2ed50e528 100644 --- a/build/build-components.js +++ b/build/build-components.js @@ -16,7 +16,7 @@ const compilerOption = { }; const isDir = dir => fs.lstatSync(dir).isDirectory(); -const isJs = path => /\.js$/.test(isJs); +const isJs = path => /\.js$/.test(path); const isSfc = path => /\.vue$/.test(path); const isCode = path => !/(demo|test|\.md)$/.test(path);