parcel-plugin-externals
Advanced tools
Comparing version 0.5.1 to 0.5.2-pre.20201115.4
# parcel-plugin-externals Changelog | ||
## 0.5.2 | ||
- Fixed failed to bundle when external does not exist (#24) | ||
## 0.5.1 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "parcel-plugin-externals", | ||
"version": "0.5.1", | ||
"version": "0.5.2-pre.20201115.4", | ||
"description": "A plugin for Parcel to omit declared externals from being included in the emitted bundles.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -163,3 +163,3 @@ const { readFileSync, existsSync, realpathSync } = require("fs"); | ||
externals.push( | ||
...modules.map((m) => ({ | ||
...modules.filter(m => existsSync(m.path)).map((m) => ({ | ||
...m, | ||
@@ -166,0 +166,0 @@ path: realpathSync(m.path), |
17946