vueless 1.1.1-beta.50 → 1.1.1-beta.51

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugin-vite.js +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.1.1-beta.50",
3
+ "version": "1.1.1-beta.51",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
package/plugin-vite.js CHANGED
@@ -120,7 +120,7 @@ export const Vueless = function (options = {}) {
120
120
  },
121
121
  }),
122
122
 
123
- configResolved: async () => {
123
+ configResolved: async (config) => {
124
124
  if (!isNuxtModuleEnv) {
125
125
  /* auto import user configs */
126
126
  await autoImportUserConfigs();
@@ -137,6 +137,15 @@ export const Vueless = function (options = {}) {
137
137
 
138
138
  /* cache vueless built-in and project icons */
139
139
  await prepareIcons();
140
+
141
+ /* suppress rollup warnings */
142
+ const originalOnWarn = config.build.rollupOptions.onwarn;
143
+
144
+ config.build.rollupOptions.onwarn = (warning, warn) => {
145
+ // eslint-disable-next-line prettier/prettier
146
+ if (warning.code === "SOURCEMAP_BROKEN" && warning.plugin === "@tailwindcss/vite:generate:build") return;
147
+ originalOnWarn ? originalOnWarn(warning, warn) : warn(warning);
148
+ };
140
149
  },
141
150
 
142
151
  /* update icons cache in dev env */