fix: @vercel/webpack-asset-relocator-loader not installed...

This commit is contained in:
lin onetwo 2021-10-25 00:48:13 +08:00
parent e5f3e010f2
commit 48193a4918
3 changed files with 25 additions and 11 deletions

13
package-lock.json generated
View file

@ -93,6 +93,7 @@
"@types/webpack-node-externals": "^2.5.3",
"@typescript-eslint/eslint-plugin": "5.1.0",
"@typescript-eslint/parser": "5.1.0",
"@vercel/webpack-asset-relocator-loader": "^1.7.0",
"ace-builds": "1.4.13",
"authing-js-sdk": "4.22.18",
"beautiful-react-hooks": "1.0.2",
@ -4463,6 +4464,12 @@
"url": "https://opencollective.com/typescript-eslint"
}
},
"node_modules/@vercel/webpack-asset-relocator-loader": {
"version": "1.7.0",
"resolved": "https://registry.nlark.com/@vercel/webpack-asset-relocator-loader/download/@vercel/webpack-asset-relocator-loader-1.7.0.tgz",
"integrity": "sha1-07cH4KujERcZ+UHayyQI7/PCcxk=",
"dev": true
},
"node_modules/@wdio/config": {
"version": "6.12.1",
"resolved": "https://registry.npmmirror.com/@wdio/config/download/@wdio/config-6.12.1.tgz",
@ -25453,6 +25460,12 @@
"eslint-visitor-keys": "^3.0.0"
}
},
"@vercel/webpack-asset-relocator-loader": {
"version": "1.7.0",
"resolved": "https://registry.nlark.com/@vercel/webpack-asset-relocator-loader/download/@vercel/webpack-asset-relocator-loader-1.7.0.tgz",
"integrity": "sha1-07cH4KujERcZ+UHayyQI7/PCcxk=",
"dev": true
},
"@wdio/config": {
"version": "6.12.1",
"resolved": "https://registry.npmmirror.com/@wdio/config/download/@wdio/config-6.12.1.tgz",

View file

@ -110,6 +110,7 @@
"@types/webpack-node-externals": "^2.5.3",
"@typescript-eslint/eslint-plugin": "5.1.0",
"@typescript-eslint/parser": "5.1.0",
"@vercel/webpack-asset-relocator-loader": "^1.7.0",
"ace-builds": "1.4.13",
"authing-js-sdk": "4.22.18",
"beautiful-react-hooks": "1.0.2",

View file

@ -16,17 +16,17 @@ module.exports = {
module: {
rules: [
...require('./webpack.rules'),
// {
// test: /\.(m?js|node)$/,
// parser: { amd: true },
// use: {
// loader: '@vercel/webpack-asset-relocator-loader',
// options: {
// outputAssetBase: 'native_modules',
// emitDirnameAll: true,
// },
// },
// },
{
test: /\.(m?js|node)$/,
parser: { amd: false },
use: {
loader: '@vercel/webpack-asset-relocator-loader',
options: {
outputAssetBase: 'native_modules',
// emitDirnameAll: true,
},
},
},
],
},
plugins: plugins.main,