Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
import _ from 'lodash'; | |
const wechatScript = '//res.wx.qq.com/open/js/jweixin-1.1.0.js'; | |
export const loadSdk = () => | |
new Promise((resolve) => { | |
require('scriptjs')(wechatScript, () => { | |
resolve(global.wx); | |
}); | |
}); |
module.exports = { | |
verbose: true, | |
moduleDirectories: ['node_modules'], | |
transform: { | |
'\\.js$': '<rootDir>/../build/utils/webpack_polyfill' | |
} | |
} |