Snapshot-friendly#162
Conversation
|
Hey @DickSmith , can you explain in which cases doe snapshot fail? Because the current demo and demo-ng apps are compiled with snapshot during CI and from what I see there are no problems (https://travis-ci.org/PeterStaev/NativeScript-Drop-Down/jobs/340329407#L3645). So seems there is some specific use case where snapshots are failing and I want to include those in the demo apps so it is properly tested by TravisCI. Thanks! |
| !webpack.*.js | ||
| report | ||
|
|
||
| package-lock.json |
There was a problem hiding this comment.
You can safely add the package-lock.json to git.
|
Hey @PeterStaev, So snapshot only takes a snapshot of the So in looking at the I had to fork and make similar changes for ~8 plugins to be able to make snapshot work with my current For reference I made a similar PR to nativescript-background-http. I've added now added the |
|
Very interesting! I might have to look at my apps and add some of the plugins to the vendor chunk 😉 Thanks for your work! |
Changes to allow this plugin to be used with android webpack/snapshot.
Java package/namespaces usage evaluated at build time will cause snapshot to fail so must be placed in a function that will not execute until runtime. Additional typing added via interfaces to compensate for the loss of having the class inside a function.