mahaker / esbuild-gas-plugin

esbuild plugin for Google Apps Script.
MIT License
33 stars 7 forks source link

esbuildをpeerDependenciesに入れてほしい #21

Open miyaji255 opened 4 months ago

miyaji255 commented 4 months ago

esbuild v0.20.0で使用すると型エラーが出るのでesbuildをpeerDependenciesに入れてほしいです。

mahaker commented 4 months ago

Could you please create a sample project to reproduce the error? Or perhaps you could tell us the runtime, each library, and build script.

miyaji255 commented 4 months ago

OK, I have prepared a sample repository for you to reproduce the error. https://github.com/miyaji255/esbuild-gas-plugin-issue-21

mahaker commented 4 months ago

Thanks!!

workaround: Instead of using tsc, change esbuild.ts to esbuild.js and run it in Node.js

const { build } = require("esbuild");
const { GasPlugin } = require("esbuild-gas-plugin");

build({
  entryPoints: ["src/index.ts"],
  bundle: true,
  outfile: "dist/bundle.js",
  plugins: [GasPlugin],
});
miyaji255 commented 4 months ago

Thank you too!

I use that until the issue is resolved.