Skip to content

Commit 7adfa77

Browse files
committed
WIP
1 parent a6b84a2 commit 7adfa77

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

esbuild.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function main(entryPoint, platform, format, plugins = []) {
2121
external: ["vscode", "fs", "path", "os"],
2222
// mainFields: platform === "node" ? ["main", "module"] : undefined, // https://github.com/microsoft/node-jsonc-parser/issues/57
2323
logLevel: production ? "silent" : "info",
24-
write: !plugins.some(p => p.name === "replace-after-transform"),
24+
// write: !plugins.some(p => p.name === "replace-after-transform"),
2525
plugins: [
2626
...plugins,
2727
esbuildProblemMatcherPlugin,
@@ -56,10 +56,9 @@ function replaceAfterTransform() {
5656
return {
5757
name: "replace-after-transform",
5858
setup(build) {
59+
build.initialOptions.write = false;
5960
build.onEnd((result) => {
60-
console.log("replace-after-transform");
6161
result?.outputFiles?.forEach(file => {
62-
console.log(file.path);
6362
if (file.path.endsWith(".js")) {
6463
const contents = file.text.replace(/"use strict";/g, "");
6564
if (contents.indexOf("use strict") >= 0) {

0 commit comments

Comments
 (0)