vite-plugin-php 1.0.68 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ Check out the [starter repo](https://github.com/nititech/php-vite-starter) for a
|
|
|
22
22
|
|
|
23
23
|
| Version | Feature |
|
|
24
24
|
| ------- | ----------------------------------------------------------------------------------------------------------- |
|
|
25
|
+
| 1.0.69 | Using new token format to escape PHP in HTML |
|
|
25
26
|
| 1.0.68 | Improved transpiled code evaluation (removed native `eval()`) |
|
|
26
27
|
| 1.0.67 | Removed whitespaces from PHP responses in dev mode |
|
|
27
28
|
| 1.0.66 | Fixed file monitoring on Windows |
|
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,7 @@ function escapePHP({ inputFile, config }) {
|
|
|
181
181
|
if (isJS) {
|
|
182
182
|
token = `/*${token}*/`;
|
|
183
183
|
} else if (isML) {
|
|
184
|
-
token =
|
|
184
|
+
token = `\u2400\u2400${token}\u2400\u2400`;
|
|
185
185
|
}
|
|
186
186
|
phpCodes[token] = replaceEnv(match, inputFile);
|
|
187
187
|
return token;
|
package/dist/index.mjs
CHANGED
|
@@ -168,7 +168,7 @@ function escapePHP({ inputFile, config }) {
|
|
|
168
168
|
if (isJS) {
|
|
169
169
|
token = `/*${token}*/`;
|
|
170
170
|
} else if (isML) {
|
|
171
|
-
token =
|
|
171
|
+
token = `\u2400\u2400${token}\u2400\u2400`;
|
|
172
172
|
}
|
|
173
173
|
phpCodes[token] = replaceEnv(match, inputFile);
|
|
174
174
|
return token;
|