From 5485b84fd0315efee7a8e7acbe5e09cbfe0334e5 Mon Sep 17 00:00:00 2001 From: nopast <490964186@qq.com> Date: Fri, 10 May 2019 11:17:33 +0800 Subject: [PATCH] bug fixed --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f93e435..86078ac 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ const chunksHandle = (chunks, compilation) => { relativePath = getRelativePath(relativePath) content = `@import "${relativePath}";\n${content}` } else if (!(/^\.map$/.test(extname))) { - content = `require("${relativePath}")\n${content}` + content = `require("${relativePath}");\n${content}` } } })