-
Notifications
You must be signed in to change notification settings - Fork 27
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
First attempt to support Next.js 13 appDir #83
Conversation
479746e
to
a25f468
Compare
a25f468
to
2217aa8
Compare
935e977
to
b97974f
Compare
After digging a little into Next.js and webpack-virtual-modules, it turns out that Next.js just doesn't work well with webpack-virtual-modules. And that's why it doesn't work on Next.js 13 I have started another project style9-webpack, re-implements style9's webpack plugin without using webpack-virtual-modules. @TxHawks @Dwlad90 would you like to give @johanholmerin I am really willing to port my
|
If your new plugin works better I'd be happy to integrate it. As for the inline loaders, it consists of the name of the loader, followed by an question mark and options, an exclamation mark, and then the normal path, e.g. |
It does work for me.
Because I am not familiar with inline loader syntax, I don't know where to put |
I am closing this PR now, because:
I will continue doing some experiments in my style9-webpack repo, and then I will open other PRs to backport some of the features/optimizations. |
cc @TxHawks @Dwlad90
Would you like to try the patch to see if it works?
Note the
appDir
might still not work, but the currentpages
is not affected (the behavior is retained, thus it is fully backward compatible).See also:
hasAppDir
vercel/next.js#43916webpack-virtual-modules
vercel/next.js#44266