Closed newying61 closed 3 years ago
Got an error when build the project. Will look into it later.
warnings
option added to a wrong place.
Following patch should fix your build:
diff --git a/rollup.config.js b/rollup.config.js
index 9f59da4..dcc9e01 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -39,9 +39,9 @@ const prodUmdConfig = mergeAll([
compress: {
pure_getters: true,
unsafe: true,
- unsafe_comps: true,
- warnings: false,
+ unsafe_comps: true
},
+ warnings: true
})
),
},
Details: UglifyJS compress options and minify options
@mbIkola Thanks for the advice. Will update next week.
@mbIkola Thanks. Build succeeded. Tests all passed.
By the way, any reason using closed mode shadow DOM? Like avoid abusing .shadowRoot? There is really little benefit we can get from { mode: 'closed' }.
Sorry guys, there's news for this PR. Thanks
@fedelocci thanks.
Come on guys, let's merge this...
Hi guys are you going to merge this soon? @MateuszKrazek
Please merge this soon as we need it as well for react-datepicker
Guys any update on this, we have major developed and this is the blocker we ran into. Please merge it. Thank you.
closing due to inactivity - mine, mostly, and unless someone is willing to fund me working on this again, that's unlikely to change.
@Pomax , @cameronbraid Hi, this is a possible solution for making lib work inside shadowDOM.
I added tests.js which renders react app inside a shadow DOM.
Got an error when build the project. Will look into it later.