preloader
How to Build @apollo/client to UMD-standard
心得 How to Build @apollo/client to UMD-standard

My goal is to build @apollo/client to UMD standard so that it can be used to browser extension. I always encounter error messages such as ERROR in ./node_modules/@apollo/client/react/context/ApolloConsumer.js 2:0-31 Module not found: Error: Can't resolve 'react' in ...(excerpted) ERROR in ./node_modules/@apollo/client/core/LocalState.js 3:0-40 Module not found: Error: Can't resolve 'graphql' ...(excerpted) Solution as below: Prequisites: You need to install webpack, webpack-cli, and copy-webpack-plugin. I use webpack v5.72.1, webpack-cli v4.9.2 and copy-webpack-plugin

read more
How to Compile a Npm Package to Be Used at Browser Extension | 如何編譯 NPM 套件在瀏覽器擴增套件環境下使用
心得 How to Compile a Npm Package to Be Used at Browser Extension | 如何編譯 NPM 套件在瀏覽器擴增套件環境下使用

Recently, I want to create a web extension for assisting to lookup information I need. In the web extension, I need to use the power of a npm package to complete some parts for me. But I have found v3 of manifest_version of chrome and v2 of manifest_version of firefox they don’t recommend to include outer packages with obfuscated version, this instruction lets me hesitating. I think there are many

read more

About

Howard Lee, Frontend-engineer with Angular 7+, Typescript, ReactJS, VueJS. Flutter, Dart, PHP, Ruby, JavaScript, HTML, SASS, CSS, Postgres, MySQL, Web Developer. Have a certificate of AWS Solution Architect Associate with verify number: 8FYNL55LCEEQ10W5. You can verify at AWS Certificate site or Credly site Tech lead role Lead 4 colleagues to build products and infrastructure Coordinate schedule of delivering products Senior web frontend developer role Products Form-filling, form-sharing, file-management, repair-managemnt and project-management for construction industry at Suiqui IoT management and EC platform for Liquid Petroleum Gas(LPG) at Wave-In Comm.

Know More

Tag

Social