vaderjs 2.1.2 → 2.1.3

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.
Files changed (2) hide show
  1. package/bundler/index.js +5 -2
  2. package/package.json +1 -1
package/bundler/index.js CHANGED
@@ -72,7 +72,7 @@ try {
72
72
  format: "esm",
73
73
  ...(process.env.DEV ? { sourcemap: "inline" } : {}),
74
74
  packages: "bundle",
75
- env: "inline",
75
+ env: "inline",
76
76
  external: ["vaderjs"]
77
77
  });
78
78
  } catch (error) {
@@ -177,8 +177,11 @@ var process = {
177
177
  }
178
178
  }
179
179
  `;
180
+ let rename = process.env.filePath.split('.js')[0] + Math.random().toString().split('.')[1] + '.js'
180
181
  fs.writeFileSync(path.join(process.cwd(), 'dist', process.env.filePath), builtCode)
181
-
182
+ var before = process.env.filePath
183
+ process.env.filePath = rename
184
+ fs.renameSync(path.join(process.cwd(), 'dist', before), path.join(process.cwd(), 'dist', process.env.filePath))
182
185
  let isClass = function (element) {
183
186
  return element && element.toString().startsWith("class");
184
187
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vaderjs",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "A simple and powerful JavaScript library for building modern web applications.",
5
5
  "bin": {
6
6
  "vaderjs": "./main.js"