@web/dev-server-rollup
Advanced tools
Comparing version 0.2.12 to 0.2.13
# @web/dev-server-rollup | ||
## 0.2.13 | ||
### Patch Changes | ||
- 5ac055f: don't handle virtual files | ||
## 0.2.12 | ||
@@ -4,0 +10,0 @@ |
@@ -19,2 +19,3 @@ "use strict"; | ||
const VIRTUAL_FILE_PREFIX = '/__web-dev-server__/rollup'; | ||
const WDS_FILE_PREFIX = '/__web-dev-server__'; | ||
/** | ||
@@ -158,2 +159,6 @@ * Wraps rollup error in a custom error for web dev server. | ||
} | ||
if (context.path.startsWith(WDS_FILE_PREFIX) && | ||
!context.path.startsWith(VIRTUAL_FILE_PREFIX)) { | ||
return; | ||
} | ||
let filePath; | ||
@@ -190,2 +195,5 @@ if (context.path.startsWith(VIRTUAL_FILE_PREFIX) && | ||
} | ||
if (context.path.startsWith(WDS_FILE_PREFIX)) { | ||
return; | ||
} | ||
if (context.response.is('js')) { | ||
@@ -192,0 +200,0 @@ const filePath = path_1.default.join(rootDir, context.path); |
{ | ||
"name": "@web/dev-server-rollup", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"publishConfig": { | ||
@@ -66,7 +66,7 @@ "access": "public" | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@rollup/plugin-url": "^5.0.1", | ||
"@rollup/plugin-url": "^6.0.0", | ||
"@types/parse5": "^5.0.3", | ||
"@types/whatwg-url": "^8.0.0", | ||
"@web/test-runner-chrome": "^0.7.0", | ||
"@web/test-runner-core": "^0.8.0", | ||
"@web/test-runner-core": "^0.8.12", | ||
"chai": "^4.2.0", | ||
@@ -73,0 +73,0 @@ "node-fetch": "3.0.0-beta.9", |
@@ -30,2 +30,3 @@ /* eslint-disable no-control-regex */ | ||
const VIRTUAL_FILE_PREFIX = '/__web-dev-server__/rollup'; | ||
const WDS_FILE_PREFIX = '/__web-dev-server__'; | ||
@@ -218,2 +219,9 @@ /** | ||
if ( | ||
context.path.startsWith(WDS_FILE_PREFIX) && | ||
!context.path.startsWith(VIRTUAL_FILE_PREFIX) | ||
) { | ||
return; | ||
} | ||
let filePath; | ||
@@ -262,2 +270,6 @@ if ( | ||
if (context.path.startsWith(WDS_FILE_PREFIX)) { | ||
return; | ||
} | ||
if (context.response.is('js')) { | ||
@@ -264,0 +276,0 @@ const filePath = path.join(rootDir, context.path); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76205
1160