vite-plugin-php 1.0.6 → 1.0.7

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/dist/index.cjs CHANGED
@@ -6831,29 +6831,27 @@ function usePHP(cfg = {}) {
6831
6831
  return [
6832
6832
  {
6833
6833
  name: "prepare-php",
6834
- config: {
6835
- order: "post",
6836
- handler(config2, env) {
6837
- const gitIgnoreFile = `${tempDir}/.gitignore`;
6838
- if (!require$$0.existsSync(gitIgnoreFile)) {
6839
- writeFile(gitIgnoreFile, "*\n**/*.php.html");
6840
- }
6841
- entries = entries.flatMap(
6842
- (entry2) => out.globSync(entry2, {
6843
- dot: true,
6844
- onlyFiles: true,
6845
- unique: true,
6846
- ignore: [tempDir, config2.build?.outDir || "dist"]
6847
- })
6848
- );
6849
- const inputs = entries.map(escapeFile);
6850
- return {
6851
- build: {
6852
- rollupOptions: { input: inputs }
6853
- },
6854
- optimizeDeps: { entries: inputs }
6855
- };
6834
+ enforce: "post",
6835
+ config(config2, env) {
6836
+ const gitIgnoreFile = `${tempDir}/.gitignore`;
6837
+ if (!require$$0.existsSync(gitIgnoreFile)) {
6838
+ writeFile(gitIgnoreFile, "*\n**/*.php.html");
6856
6839
  }
6840
+ entries = entries.flatMap(
6841
+ (entry2) => out.globSync(entry2, {
6842
+ dot: true,
6843
+ onlyFiles: true,
6844
+ unique: true,
6845
+ ignore: [tempDir, config2.build?.outDir || "dist"]
6846
+ })
6847
+ );
6848
+ const inputs = entries.map(escapeFile);
6849
+ return {
6850
+ build: {
6851
+ rollupOptions: { input: inputs }
6852
+ },
6853
+ optimizeDeps: { entries: inputs }
6854
+ };
6857
6855
  },
6858
6856
  configResolved(_config) {
6859
6857
  config = _config;
package/dist/index.mjs CHANGED
@@ -6818,29 +6818,27 @@ function usePHP(cfg = {}) {
6818
6818
  return [
6819
6819
  {
6820
6820
  name: "prepare-php",
6821
- config: {
6822
- order: "post",
6823
- handler(config2, env) {
6824
- const gitIgnoreFile = `${tempDir}/.gitignore`;
6825
- if (!existsSync(gitIgnoreFile)) {
6826
- writeFile(gitIgnoreFile, "*\n**/*.php.html");
6827
- }
6828
- entries = entries.flatMap(
6829
- (entry2) => out.globSync(entry2, {
6830
- dot: true,
6831
- onlyFiles: true,
6832
- unique: true,
6833
- ignore: [tempDir, config2.build?.outDir || "dist"]
6834
- })
6835
- );
6836
- const inputs = entries.map(escapeFile);
6837
- return {
6838
- build: {
6839
- rollupOptions: { input: inputs }
6840
- },
6841
- optimizeDeps: { entries: inputs }
6842
- };
6821
+ enforce: "post",
6822
+ config(config2, env) {
6823
+ const gitIgnoreFile = `${tempDir}/.gitignore`;
6824
+ if (!existsSync(gitIgnoreFile)) {
6825
+ writeFile(gitIgnoreFile, "*\n**/*.php.html");
6843
6826
  }
6827
+ entries = entries.flatMap(
6828
+ (entry2) => out.globSync(entry2, {
6829
+ dot: true,
6830
+ onlyFiles: true,
6831
+ unique: true,
6832
+ ignore: [tempDir, config2.build?.outDir || "dist"]
6833
+ })
6834
+ );
6835
+ const inputs = entries.map(escapeFile);
6836
+ return {
6837
+ build: {
6838
+ rollupOptions: { input: inputs }
6839
+ },
6840
+ optimizeDeps: { entries: inputs }
6841
+ };
6844
6842
  },
6845
6843
  configResolved(_config) {
6846
6844
  config = _config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-php",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Precompile PHP-files with the speed of Vite",
5
5
  "keywords": [
6
6
  "vite",
@@ -55,6 +55,6 @@
55
55
  "fast-glob": "^3.3.2",
56
56
  "typescript": "^5.3.3",
57
57
  "unbuild": "^2.0.0",
58
- "vite": "^4.4.9"
58
+ "vite": "^5.1.3"
59
59
  }
60
60
  }