зеркало из https://github.com/nextcloud/spreed.git
Use `babel-loader-exclude-node-modules-except`
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
9fede6d195
Коммит
4e3bab9796
|
@ -6416,6 +6416,23 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"babel-loader-exclude-node-modules-except": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/babel-loader-exclude-node-modules-except/-/babel-loader-exclude-node-modules-except-1.0.3.tgz",
|
||||
"integrity": "sha512-UEHoSzivswrRu3bb7UIVpY0g1kBnZvuU/2oXrRBhggjQOqW2HBCp6FsvuNc8ZupBUh+zClKxw8jxwuqZTSapwQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"escape-string-regexp": "2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"escape-string-regexp": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",
|
||||
"integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"babel-messages": {
|
||||
"version": "6.23.0",
|
||||
"resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz",
|
||||
|
|
|
@ -69,6 +69,7 @@
|
|||
"@vue/test-utils": "^1.0.3",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"babel-loader": "^8.1.0",
|
||||
"babel-loader-exclude-node-modules-except": "^1.0.3",
|
||||
"babel-plugin-add-module-exports": "^1.0.2",
|
||||
"css-loader": "^3.6.0",
|
||||
"eslint": "^5.16.0",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const path = require('path')
|
||||
const { VueLoaderPlugin } = require('vue-loader')
|
||||
const StyleLintPlugin = require('stylelint-webpack-plugin')
|
||||
const babelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')
|
||||
|
||||
module.exports = {
|
||||
entry: {
|
||||
|
@ -37,12 +38,20 @@ module.exports = {
|
|||
{
|
||||
test: /\.vue$/,
|
||||
loader: 'vue-loader',
|
||||
exclude: /node_modules(?!(\/|\\)(vue-material-design-icons)(\/|\\))/,
|
||||
exclude: babelLoaderExcludeNodeModulesExcept([
|
||||
'vue-material-design-icons',
|
||||
]),
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules(?!(\/|\\)(@juliushaertl\/vue-richtext|fast-xml-parser|hot-patcher|nextcloud-vue-collections|webdav)(\/|\\))/,
|
||||
exclude: babelLoaderExcludeNodeModulesExcept([
|
||||
'@juliushaertl/vue-richtext',
|
||||
'fast-xml-parser',
|
||||
'hot-patcher',
|
||||
'nextcloud-vue-collections',
|
||||
'webdav',
|
||||
]),
|
||||
},
|
||||
{
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче