feathersjs-ecosystem / feathers-localstorage

A client side service based on feathers-memory that persists to LocalStorage
MIT License
38 stars 15 forks source link

webpack warning on lazy-cache #60

Closed elaijuh closed 6 years ago

elaijuh commented 6 years ago

Steps to reproduce

i am using it with angular 5, when webpack compiling the source code, it shows errors

Actual behavior

WARNING in ./node_modules/shallow-clone/utils.js
3:34-41 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

the lazy-loader webpack loader might solve this problem, but it's worthy to mention this flaw in read me

daffl commented 6 years ago

Do you know what it expects for the require? Does it work when including dist/feathers-localstorage instead?

elaijuh commented 6 years ago

I haven't looked deep into it yet

daffl commented 6 years ago

I think this should be fixed with the Webpack 4 build or the distirbutable.