-
-
Notifications
You must be signed in to change notification settings - Fork 12
Rolldown-Vite #84
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
base: main
Are you sure you want to change the base?
Rolldown-Vite #84
Conversation
cf207d1
to
382f440
Compare
commit: |
9ce2683
to
a974a4a
Compare
e056d58
to
fa33494
Compare
`function(dep, importerUrl) { return new URL(dep, importerUrl).href }` | ||
: // If the base isn't relative, then the deps are relative to the projects `outDir` and the base | ||
// is appended inside __vitePreload too. | ||
`function(dep) { return ${JSON.stringify(environment.config.base)}+dep }` |
Check warning
Code scanning / CodeQL
Improper code sanitization
fa33494
to
922ad2d
Compare
Found this PR in the Vite docs. Curious how stable |
51fd297
to
3fc2ac5
Compare
I'd say it would work for basic cases as it is passing most tests through out the ecosystem. |
Co-authored-by: underfin <likui.underfin@gmail.com>
…ons` automatically
Co-authored-by: underfin <likui.underfin@gmail.com> Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
Co-authored-by: Yury <YurySolovyov@users.noreply.github.com>
Co-authored-by: underfin <2218301630@qq.com> Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>
Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>
Co-authored-by: IWANABETHATGUY <iwanabethatguy@qq.com>
Co-Authored-By: Evan You <evan@vuejs.org>
Co-authored-by: sapphi-red <49056869+sapphi-red@users.noreply.github.com>
@sapphi-red Not sure if this is helpful or unrelated, but in regard to this part:
Due to the nature of projects I work on almost exclusively being MPA's, we use Vite only for processing front-end assets and then have back-end code in PHP for reading the manifest and loading compiled assets where needed. For some non-JS assets this means they're never explicitly included in any JS or CSS file as they are only meant to be consumed by the back-end. We ensure these assets get processed with something along the lines of this:
However, what I found when testing out the new rolldown-vite setup is that these assets were no longer appearing in the manifest. After a little tinkering I found that creating a side-effect from the call to
So it seems like maybe there are cases where these assets are simply being dropped due to tree-shaking. But, this is only a guess and possibly not related to your above issue. But I thought I'd share just in case. |
@corneliusio That isn't related to what I wrote, because that's not related to native plugins. |
I'll lock this PR as comments on this PR will be difficult to track. Feel free to create an issue or discussion if you need to comment. |
70203f7
to
6f8287b
Compare
Description
Current Status
sequential: false
object hooks are not supportedIntended behavior differences
esbuild
needs to be installed manually in the following cases:build.minify: 'esbuild'
transformWithEsbuild
functionbuild.target
errors: esbuild selects the latest version of it, but that's probably not what you intenddefine
does not share reference for objects oxc-project/oxc#7641build.rollupOptions.output.manualChunks
is not supported. please usebuild.rollupOptions.output.advancedChunks
insteadsplitVendorChunkPlugin
is not supportedstructuredClone(bundle)
errors withDataCloneError: #<Object> could not be cloned.
. please clone it withstructuredClone({ ...bundle })
(Build errors with "DataCloneError: #<Object> could not be cloned." usingrollup-plugin-webpack-stats
#128)bundle[foo]
ingenerateBundle
hook is not supported. It is discouraged by Rollup as well.Known missing features
output.format: 'system'
([Feature Request]: Support for System JS as output format rolldown/rolldown#2387)resolveImportMeta
hook (resolveImportMeta hook implement rolldown/rolldown#1010)related to native plugins
tsconfig
createResolver
TODO list for me