vaderjs 1.3.3-alpha-11 → 1.3.3-alpha-13

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/client/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  window.params = {};
3
3
  window.Vader = {
4
- version: "1.3.2",
4
+ version: "1.3.3",
5
5
  };
6
6
 
7
7
  let errors = {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vaderjs",
3
3
  "description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
4
4
  "module": "vader.js",
5
- "version": "1.3.3-alpha-11",
5
+ "version": "1.3.3-alpha-13",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },
package/vader.js CHANGED
@@ -485,7 +485,6 @@ function Compiler(func) {
485
485
  let componentMatch = body.match(componentRegex);
486
486
  let topComponent = "";
487
487
  componentMatch?.forEach(async (component) => {
488
- const rewriter = new HTMLRewriter();
489
488
  let [, element, attributes] = component;
490
489
 
491
490
  !isChild ? (topComponent = component) : null;
@@ -656,6 +655,9 @@ async function Build() {
656
655
  });
657
656
  scannedVaderFiles.forEach(async (file) => {
658
657
  file = file.replace(/\\/g, '/');
658
+ if(file.includes('index.html') && fs.existsSync(process.cwd() + "/dist/index.html")){
659
+ return
660
+ }
659
661
 
660
662
  let name = file.split( '/node_modules/vaderjs/runtime/')[1]
661
663
  let data = await reader(file)