https://github.com/hacksore/turborepo-rollup-shared-lib
https://github.com/hacksore/turborepo-rollup-shared-lib
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hacksore/turborepo-rollup-shared-lib
- Owner: Hacksore
- Created: 2022-10-17T13:39:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-01T00:08:13.000Z (over 3 years ago)
- Last Synced: 2024-10-06T00:43:09.820Z (almost 2 years ago)
- Language: JavaScript
- Size: 67.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# turborepo-rollup-shared-lib
The goals is to have nice imports from shared and be able to bundle them into the `apps/rollup-demo` app.
```ts
// shared is from another monorepo sub package
import { bark } from "@acme/shared/animals";
// shared from module
import { CLASSIC_EXPORT } from "@acme/shared/module";
// shared index
import { TEST_FROM_ROOT } from "@acme/shared";
const main = () => {
bark();
console.log(CLASSIC_EXPORT);
};
main();
```