Skip to content

Commit 99133fb

Browse files
authored
Merge pull request #40 from fabiiomiiguel/main
fix: waning about the __NO_SIDE_EFFECTS__ after building with vite
2 parents 3a43c62 + ab6fdab commit 99133fb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package/dist/vue-web-component-wrapper.es.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { defineComponent as $, nextTick as B, render as A, createVNode as K, h a
77
* (c) 2018-present Yuxi (Evan) You and Vue contributors
88
* @license MIT
99
**/
10-
/*! #__NO_SIDE_EFFECTS__ */
1110
process.env.NODE_ENV !== "production" && Object.freeze({});
1211
process.env.NODE_ENV !== "production" && Object.freeze([]);
1312
const z = Object.assign, P = Array.isArray, M = (e) => typeof e == "string", L = (e) => {
@@ -19,7 +18,7 @@ const z = Object.assign, P = Array.isArray, M = (e) => typeof e == "string", L =
1918
const r = M(e) ? Number(e) : NaN;
2019
return isNaN(r) ? e : r;
2120
};
22-
/*! #__NO_SIDE_EFFECTS__ */
21+
/*! @__NO_SIDE_EFFECTS__ */
2322
function F(e, r, t) {
2423
const s = $(e);
2524
class o extends g {

package/dist/vue-web-component-wrapper.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/src/api-custom-element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export function defineCustomElement<P>(
163163
config?: DefineCustomElementConfig
164164
): VueElementConstructor<ExtractPropTypes<P>>
165165

166-
/*! #__NO_SIDE_EFFECTS__ */
166+
/*! @__NO_SIDE_EFFECTS__ */
167167
export function defineCustomElement(
168168
options: any,
169169
config?: DefineCustomElementConfig,
@@ -180,7 +180,7 @@ export function defineCustomElement(
180180
return VueCustomElement
181181
}
182182

183-
/*! #__NO_SIDE_EFFECTS__ */
183+
/*! @__NO_SIDE_EFFECTS__ */
184184
export const defineSSRCustomElement = ((
185185
options: any,
186186
config?: DefineCustomElementConfig

package/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default defineConfig({
1515
output: {
1616
globals: {
1717
vue: 'Vue'
18-
}
18+
},
19+
exports: 'named'
1920
}
2021
}
2122
}

0 commit comments

Comments
 (0)