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

feat: support file to file compilation #42

Open
lbwa opened this issue Feb 13, 2022 · 1 comment
Open

feat: support file to file compilation #42

lbwa opened this issue Feb 13, 2022 · 1 comment
Assignees

Comments

@lbwa
Copy link
Owner

lbwa commented Feb 13, 2022

  • DO NOT bundle anything
  • --bundle=false enable this feature
@lbwa lbwa self-assigned this Feb 13, 2022
@lbwa lbwa closed this as completed Feb 13, 2022
@lbwa lbwa reopened this Feb 13, 2022
@lbwa lbwa changed the title feat: file to file compilation feat: support file to file compilation Feb 13, 2022
@lbwa
Copy link
Owner Author

lbwa commented Apr 2, 2022

same as the following code:

import { build } from 'esbuild';
import { globby } from 'globby';
import path from 'path';

const cwd = process.cwd();

(async function main() {
  await build({
    entryPoints: await globby(['src/**/*.ts'], {
      cwd,
      gitignore: true,
    }),
    format: 'cjs',
    outdir: path.resolve(cwd, 'src'),
  });
})();

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

1 participant