@vanilla-extract/next-plugin 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,11 +23,12 @@ function getSupportedBrowsers(dir, isDevelopment) {
23
23
  }
24
24
  const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) => Object.assign({}, nextConfig, {
25
25
  webpack(config, options) {
26
- var _nextConfig$experimen;
26
+ var _resolvedNextConfig$e;
27
27
  const {
28
28
  dir,
29
29
  dev,
30
- isServer
30
+ isServer,
31
+ config: resolvedNextConfig
31
32
  } = options;
32
33
  const cssRules = config.module.rules.find(rule => Array.isArray(rule.oneOf) && rule.oneOf.some(({
33
34
  test
@@ -40,10 +41,10 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
40
41
  isClient: !isServer,
41
42
  isServer,
42
43
  isDevelopment: dev,
43
- future: nextConfig.future || {},
44
- experimental: nextConfig.experimental || {},
44
+ future: resolvedNextConfig.future || {},
45
+ experimental: resolvedNextConfig.experimental || {},
45
46
  // @ts-ignore -- 'appDir' config is in beta
46
- hasAppDir: (_nextConfig$experimen = nextConfig.experimental) === null || _nextConfig$experimen === void 0 ? void 0 : _nextConfig$experimen.appDir
47
+ hasAppDir: (_resolvedNextConfig$e = resolvedNextConfig.experimental) === null || _resolvedNextConfig$e === void 0 ? void 0 : _resolvedNextConfig$e.appDir
47
48
  }, () => css.lazyPostCSS(dir, getSupportedBrowsers(dir, dev), undefined), [])
48
49
  });
49
50
  config.plugins.push(new webpackPlugin.VanillaExtractPlugin({
@@ -23,11 +23,12 @@ function getSupportedBrowsers(dir, isDevelopment) {
23
23
  }
24
24
  const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) => Object.assign({}, nextConfig, {
25
25
  webpack(config, options) {
26
- var _nextConfig$experimen;
26
+ var _resolvedNextConfig$e;
27
27
  const {
28
28
  dir,
29
29
  dev,
30
- isServer
30
+ isServer,
31
+ config: resolvedNextConfig
31
32
  } = options;
32
33
  const cssRules = config.module.rules.find(rule => Array.isArray(rule.oneOf) && rule.oneOf.some(({
33
34
  test
@@ -40,10 +41,10 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
40
41
  isClient: !isServer,
41
42
  isServer,
42
43
  isDevelopment: dev,
43
- future: nextConfig.future || {},
44
- experimental: nextConfig.experimental || {},
44
+ future: resolvedNextConfig.future || {},
45
+ experimental: resolvedNextConfig.experimental || {},
45
46
  // @ts-ignore -- 'appDir' config is in beta
46
- hasAppDir: (_nextConfig$experimen = nextConfig.experimental) === null || _nextConfig$experimen === void 0 ? void 0 : _nextConfig$experimen.appDir
47
+ hasAppDir: (_resolvedNextConfig$e = resolvedNextConfig.experimental) === null || _resolvedNextConfig$e === void 0 ? void 0 : _resolvedNextConfig$e.appDir
47
48
  }, () => css.lazyPostCSS(dir, getSupportedBrowsers(dir, dev), undefined), [])
48
49
  });
49
50
  config.plugins.push(new webpackPlugin.VanillaExtractPlugin({
@@ -15,11 +15,12 @@ function getSupportedBrowsers(dir, isDevelopment) {
15
15
  }
16
16
  const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) => Object.assign({}, nextConfig, {
17
17
  webpack(config, options) {
18
- var _nextConfig$experimen;
18
+ var _resolvedNextConfig$e;
19
19
  const {
20
20
  dir,
21
21
  dev,
22
- isServer
22
+ isServer,
23
+ config: resolvedNextConfig
23
24
  } = options;
24
25
  const cssRules = config.module.rules.find(rule => Array.isArray(rule.oneOf) && rule.oneOf.some(({
25
26
  test
@@ -32,10 +33,10 @@ const createVanillaExtractPlugin = (pluginOptions = {}) => (nextConfig = {}) =>
32
33
  isClient: !isServer,
33
34
  isServer,
34
35
  isDevelopment: dev,
35
- future: nextConfig.future || {},
36
- experimental: nextConfig.experimental || {},
36
+ future: resolvedNextConfig.future || {},
37
+ experimental: resolvedNextConfig.experimental || {},
37
38
  // @ts-ignore -- 'appDir' config is in beta
38
- hasAppDir: (_nextConfig$experimen = nextConfig.experimental) === null || _nextConfig$experimen === void 0 ? void 0 : _nextConfig$experimen.appDir
39
+ hasAppDir: (_resolvedNextConfig$e = resolvedNextConfig.experimental) === null || _resolvedNextConfig$e === void 0 ? void 0 : _resolvedNextConfig$e.appDir
39
40
  }, () => lazyPostCSS(dir, getSupportedBrowsers(dir, dev), undefined), [])
40
41
  });
41
42
  config.plugins.push(new VanillaExtractPlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanilla-extract/next-plugin",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Zero-runtime Stylesheets-in-TypeScript",
5
5
  "main": "dist/vanilla-extract-next-plugin.cjs.js",
6
6
  "module": "dist/vanilla-extract-next-plugin.esm.js",