Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
miyaji255 opened this issue Jun 27, 2024 · 4 comments
Open

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

miyaji255 opened this issue Jun 27, 2024 · 4 comments

Comments

@miyaji255
Copy link

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

@mahaker
Copy link
Owner

mahaker commented Jun 27, 2024

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
Copy link
Author

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

@mahaker
Copy link
Owner

mahaker commented Jun 27, 2024

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
Copy link
Author

Thank you too!

I use that until the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants