Skip to content

feat: support command line pass in esbuild configuration#89

Open
seho-dev wants to merge 2 commits into
egoist:devfrom
seho-dev:dev
Open

feat: support command line pass in esbuild configuration#89
seho-dev wants to merge 2 commits into
egoist:devfrom
seho-dev:dev

Conversation

@seho-dev

@seho-dev seho-dev commented Apr 2, 2023

Copy link
Copy Markdown

No description provided.

@codesandbox

codesandbox Bot commented Apr 2, 2023

Copy link
Copy Markdown

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@seho-dev

seho-dev commented Apr 2, 2023

Copy link
Copy Markdown
Author

see #88

@seho-dev

seho-dev commented Apr 6, 2023

Copy link
Copy Markdown
Author

@egoist

Comment thread README.md
Comment on lines +23 to +27
You can also pass a JSON string to specify configuration options for esbuild, such as if I want to pass in the banner configuration.

```bash
node -r esbuild-register file.ts --esbuild-config="{\"banner\": \"console.log('is banner')\"}"
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this idea, but personally would prefer an option to specify a config-file that exports an object matching the esbuild config options.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll resubmit when I have time, thanks for the reply

@ndelangen ndelangen Feb 5, 2024

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not the package author @seho-dev, so maybe wait to see if they agree with my person opinion :)

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

Successfully merging this pull request may close these issues.

2 participants