@vanilla-extract/vite-plugin 4.0.4 → 4.0.5

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.
@@ -78,6 +78,8 @@ function vanillaExtractPlugin({
78
78
  async configResolved(_resolvedConfig) {
79
79
  config = _resolvedConfig;
80
80
  packageName = integration.getPackageInfo(config.root).name;
81
+ },
82
+ async buildStart() {
81
83
  if (mode !== 'transform') {
82
84
  var _configFile$config$pl;
83
85
  const {
@@ -94,7 +96,7 @@ function vanillaExtractPlugin({
94
96
  cssImportSpecifier: fileIdToVirtualId,
95
97
  viteConfig: {
96
98
  ...(configFile === null || configFile === void 0 ? void 0 : configFile.config),
97
- plugins: configFile === null || configFile === void 0 ? void 0 : (_configFile$config$pl = configFile.config.plugins) === null || _configFile$config$pl === void 0 ? void 0 : _configFile$config$pl.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
99
+ plugins: configFile === null || configFile === void 0 || (_configFile$config$pl = configFile.config.plugins) === null || _configFile$config$pl === void 0 ? void 0 : _configFile$config$pl.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
98
100
  // Prevent an infinite loop where the compiler creates a new instance of the plugin,
99
101
  // which creates a new compiler, which creates a new instance of the plugin, etc.
100
102
  plugin.name !== 'vanilla-extract' &&
@@ -109,7 +111,7 @@ function vanillaExtractPlugin({
109
111
  },
110
112
  buildEnd() {
111
113
  var _compiler;
112
- (_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.close();
114
+ (_compiler = compiler) === null || _compiler === void 0 || _compiler.close();
113
115
  },
114
116
  async transform(code, id) {
115
117
  const [validId] = id.split('?');
@@ -78,6 +78,8 @@ function vanillaExtractPlugin({
78
78
  async configResolved(_resolvedConfig) {
79
79
  config = _resolvedConfig;
80
80
  packageName = integration.getPackageInfo(config.root).name;
81
+ },
82
+ async buildStart() {
81
83
  if (mode !== 'transform') {
82
84
  var _configFile$config$pl;
83
85
  const {
@@ -94,7 +96,7 @@ function vanillaExtractPlugin({
94
96
  cssImportSpecifier: fileIdToVirtualId,
95
97
  viteConfig: {
96
98
  ...(configFile === null || configFile === void 0 ? void 0 : configFile.config),
97
- plugins: configFile === null || configFile === void 0 ? void 0 : (_configFile$config$pl = configFile.config.plugins) === null || _configFile$config$pl === void 0 ? void 0 : _configFile$config$pl.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
99
+ plugins: configFile === null || configFile === void 0 || (_configFile$config$pl = configFile.config.plugins) === null || _configFile$config$pl === void 0 ? void 0 : _configFile$config$pl.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
98
100
  // Prevent an infinite loop where the compiler creates a new instance of the plugin,
99
101
  // which creates a new compiler, which creates a new instance of the plugin, etc.
100
102
  plugin.name !== 'vanilla-extract' &&
@@ -109,7 +111,7 @@ function vanillaExtractPlugin({
109
111
  },
110
112
  buildEnd() {
111
113
  var _compiler;
112
- (_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.close();
114
+ (_compiler = compiler) === null || _compiler === void 0 || _compiler.close();
113
115
  },
114
116
  async transform(code, id) {
115
117
  const [validId] = id.split('?');
@@ -70,6 +70,8 @@ function vanillaExtractPlugin({
70
70
  async configResolved(_resolvedConfig) {
71
71
  config = _resolvedConfig;
72
72
  packageName = getPackageInfo(config.root).name;
73
+ },
74
+ async buildStart() {
73
75
  if (mode !== 'transform') {
74
76
  var _configFile$config$pl;
75
77
  const {
@@ -86,7 +88,7 @@ function vanillaExtractPlugin({
86
88
  cssImportSpecifier: fileIdToVirtualId,
87
89
  viteConfig: {
88
90
  ...(configFile === null || configFile === void 0 ? void 0 : configFile.config),
89
- plugins: configFile === null || configFile === void 0 ? void 0 : (_configFile$config$pl = configFile.config.plugins) === null || _configFile$config$pl === void 0 ? void 0 : _configFile$config$pl.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
91
+ plugins: configFile === null || configFile === void 0 || (_configFile$config$pl = configFile.config.plugins) === null || _configFile$config$pl === void 0 ? void 0 : _configFile$config$pl.flat().filter(plugin => typeof plugin === 'object' && plugin !== null && 'name' in plugin &&
90
92
  // Prevent an infinite loop where the compiler creates a new instance of the plugin,
91
93
  // which creates a new compiler, which creates a new instance of the plugin, etc.
92
94
  plugin.name !== 'vanilla-extract' &&
@@ -101,7 +103,7 @@ function vanillaExtractPlugin({
101
103
  },
102
104
  buildEnd() {
103
105
  var _compiler;
104
- (_compiler = compiler) === null || _compiler === void 0 ? void 0 : _compiler.close();
106
+ (_compiler = compiler) === null || _compiler === void 0 || _compiler.close();
105
107
  },
106
108
  async transform(code, id) {
107
109
  const [validId] = id.split('?');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanilla-extract/vite-plugin",
3
- "version": "4.0.4",
3
+ "version": "4.0.5",
4
4
  "description": "Zero-runtime Stylesheets-in-TypeScript",
5
5
  "main": "dist/vanilla-extract-vite-plugin.cjs.js",
6
6
  "module": "dist/vanilla-extract-vite-plugin.esm.js",
@@ -18,7 +18,7 @@
18
18
  "@vanilla-extract/integration": "^7.1.0"
19
19
  },
20
20
  "devDependencies": {
21
- "vite": "npm:vite@^5.0.11"
21
+ "vite": "^5.0.11"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "vite": "^4.0.3 || ^5.0.0"