vaderjs 2.1.5 → 2.1.6
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/bundler/index.js +3 -3
- package/package.json +1 -1
package/bundler/index.js
CHANGED
|
@@ -62,7 +62,7 @@ globalThis.window = {
|
|
|
62
62
|
href: "",
|
|
63
63
|
pathname: "",
|
|
64
64
|
},
|
|
65
|
-
}
|
|
65
|
+
}
|
|
66
66
|
try {
|
|
67
67
|
await Bun.build({
|
|
68
68
|
entrypoints: [process.env.ENTRYPOINT],
|
|
@@ -70,7 +70,7 @@ try {
|
|
|
70
70
|
root: process.cwd() + "/dist/",
|
|
71
71
|
outdir: process.cwd() + "/dist/",
|
|
72
72
|
format: "esm",
|
|
73
|
-
...(process.env.DEV ? { sourcemap: "inline" } : {}),
|
|
73
|
+
...(JSON.parse(process.env.DEV) ? { sourcemap: "inline" } : {}),
|
|
74
74
|
packages: "bundle",
|
|
75
75
|
env: "inline",
|
|
76
76
|
external: ["vaderjs"]
|
|
@@ -181,7 +181,7 @@ let rename = process.env.filePath.split('.js')[0] + Math.random().toString().spl
|
|
|
181
181
|
fs.writeFileSync(path.join(process.cwd(), 'dist', process.env.filePath), builtCode)
|
|
182
182
|
var before = process.env.filePath
|
|
183
183
|
process.env.filePath = rename
|
|
184
|
-
fs.renameSync(path.join(process.cwd(), 'dist', before), path.join(process.cwd(), 'dist',
|
|
184
|
+
fs.renameSync(path.join(process.cwd(), 'dist', before), path.join(process.cwd(), 'dist', process.env.filePath))
|
|
185
185
|
let isClass = function (element) {
|
|
186
186
|
return element && element.toString().startsWith("class");
|
|
187
187
|
};
|