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

[Feature] Subpaths #435

Open
colbyfayock opened this issue Feb 22, 2024 · 0 comments
Open

[Feature] Subpaths #435

colbyfayock opened this issue Feb 22, 2024 · 0 comments
Assignees

Comments

@colbyfayock
Copy link
Collaborator

Feature Request

Is your feature request related to a problem? Please describe.

Re-introduce subpaths in next Major to allow appending use client directive to components and more targeted imports

#387
#371
#389
#393

This was referenced Feb 22, 2024
colbyfayock pushed a commit that referenced this issue Sep 27, 2024
# Description

This PR switches away from tsup to preconstruct - a lesser-known but
more capable tool.

The benefits are:
- better cjs & esm setup 
- and types for the above (this should pass
https://arethetypeswrong.github.io/ checks)
- `'use client'` directive support. With this you just can just add the
directive to any of your files and Preconstruct takes care of isolating
that in its own chunk
- `package.json#exports` flexibility:
- it should be possible to add extra entrypoints with ease if you ever
need that (like `next-cloudinary/something`)
- it's also easy to use differential bundling with this, if you ever
need to ship different code for dev/prov bundles, or for
node/browser/webworker/vercel's edge-light/younameit (or perhaps for
`react-server` condition)

## Issue Ticket Number

Related to
#435

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Fix or improve the documentation
- [ ] This change requires a documentation update


# Checklist

- [x] I have followed the contributing guidelines of this project as
mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md)
- [x] I have created an
[issue](https://github.com/cloudinary-community/next-cloudinary/issues)
ticket for this PR
- [x] I have checked to ensure there aren't other open [Pull
Requests](https://github.com/cloudinary-community/next-cloudinary/pulls)
for the same update/change?
- [x] I have performed a self-review of my own code
- [x] I have run tests locally to ensure they all pass
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes needed to the documentation

BREAKING CHANGE: New build tool, no longer requires `use client` directive, marking as breaking for safety
@colbyfayock colbyfayock self-assigned this Sep 27, 2024
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