We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pnpm install @farmfe/core @farmfe/cli -D
// farm.config.ts import { defineConfig } from '@farmfe/core'; export default defineConfig({ compilation: { presetEnv: false, input: { main: 'src/main.ts', }, }, });
// src/main.ts import { Person } from './dep'; export { Person }; // src/dep.ts export interface Person { name: string; }
npx farm build
should be cleared at compile time
import { Person } from './dep'; export { Person };
to the runtime
// dist/main.js
ec2bf3a9: function (e, t, n, r) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), Object.defineProperty(t, 'Person', { enumerable: !0, get: function () { return o.Person; }, }); let o = n('ef454df0'); }, ef454df0: function (n, c, f, i) {},
System: OS: Linux 6.7 Arch Linux CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13600KF Memory: 14.97 GB / 31.18 GB Container: Yes Shell: 5.9 - /bin/zsh npmPackages: @farmfe/cli: ^1.0.0 => 1.0.0 @farmfe/core: ^1.0.22 => 1.0.22
After my simple review, it appears in dev and build
The text was updated successfully, but these errors were encountered:
farm does not know it's type declaration. but it should be removed during tree shake. main.ts is entry so it won't be tree shaken
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
What is expected?
should be cleared at compile time
What is actually happening?
to the runtime
// dist/main.js
System Info
Any additional comments?
After my simple review, it appears in dev and build
The text was updated successfully, but these errors were encountered: