Skip to content

Commit 83acf14

Browse files
author
Yaroslav Kasperovich
committed
Fix node modules exclusion
1 parent be47aaa commit 83acf14

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ module.exports = (API, projectOptions) => {
1111
}
1212
const coffeeRule = config.module
1313
.rule("coffee")
14-
.exclude(/node_modules|bower_components/)
15-
.test(/\.coffee$/);
14+
.test(/\.coffee$/)
15+
.exclude.add(() => ["node_modules", "bower_components"])
16+
.end();
1617

1718
coffeeRule.use("cache-loader").loader(require.resolve("cache-loader"));
1819

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-plugin-coffee",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"description": "CoffeeScript2 support for your @vue/cli project",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)