Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bradcerasani/633b55a2b89af5b2dd7f73cfecefad9f to your computer and use it in GitHub Desktop.
Save bradcerasani/633b55a2b89af5b2dd7f73cfecefad9f to your computer and use it in GitHub Desktop.
patches
diff --git a/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.dev.js b/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.dev.js
index 09e1996..fc27553 100644
--- a/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.dev.js
+++ b/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.dev.js
@@ -43,7 +43,8 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
isServer,
isDevelopment: dev,
future: nextConfig.future || {},
- experimental: nextConfig.experimental || {}
+ experimental: nextConfig.experimental || {},
+ hasAppDir: nextConfig.experimental.appDir
}, () => css.lazyPostCSS(dir, getSupportedBrowsers(dir, dev)), [])
});
config.plugins.push(new webpackPlugin.VanillaExtractPlugin({
diff --git a/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.prod.js b/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.prod.js
index 09e1996..fc27553 100644
--- a/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.prod.js
+++ b/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.cjs.prod.js
@@ -43,7 +43,8 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
isServer,
isDevelopment: dev,
future: nextConfig.future || {},
- experimental: nextConfig.experimental || {}
+ experimental: nextConfig.experimental || {},
+ hasAppDir: nextConfig.experimental.appDir
}, () => css.lazyPostCSS(dir, getSupportedBrowsers(dir, dev)), [])
});
config.plugins.push(new webpackPlugin.VanillaExtractPlugin({
diff --git a/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.esm.js b/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.esm.js
index 83af576..d9237ad 100644
--- a/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.esm.js
+++ b/node_modules/@vanilla-extract/next-plugin/dist/vanilla-extract-next-plugin.esm.js
@@ -35,7 +35,8 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
isServer,
isDevelopment: dev,
future: nextConfig.future || {},
- experimental: nextConfig.experimental || {}
+ experimental: nextConfig.experimental || {},
+ hasAppDir: nextConfig.experimental.appDir
}, () => lazyPostCSS(dir, getSupportedBrowsers(dir, dev)), [])
});
config.plugins.push(new VanillaExtractPlugin({
diff --git a/node_modules/next/dist/build/webpack/loaders/utils.js b/node_modules/next/dist/build/webpack/loaders/utils.js
index 9d21ac8..0b56eb3 100644
--- a/node_modules/next/dist/build/webpack/loaders/utils.js
+++ b/node_modules/next/dist/build/webpack/loaders/utils.js
@@ -21,7 +21,7 @@ function isClientComponentModule(mod) {
const hasClientDirective = ((ref = mod.buildInfo.rsc) == null ? void 0 : ref.type) === _constants.RSC_MODULE_TYPES.client;
return hasClientDirective || imageRegex.test(mod.resource);
}
-const regexCSS = /\.(css|scss|sass)(\?.*)?$/;
+const regexCSS = /\.(css|scss|sass|css\.ts)(\?.*)?$/;
exports.regexCSS = regexCSS;
function getActions(mod) {
var ref;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment