Welcome to mirror list, hosted at ThFree Co, Russian Federation.

webpack.js - github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 410dd18e93ba1c85a63e6850da0186b0dd71723a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const webpackConfig = require('@nextcloud/webpack-vue-config')
const BabelLoaderExcludeNodeModulesExcept = require('babel-loader-exclude-node-modules-except')

const jsRule = webpackConfig.module.rules.findIndex(t => (t.test.toString() === /\.js$/.toString()))

webpackConfig.module.rules[jsRule].exclude = BabelLoaderExcludeNodeModulesExcept([
	'@juliushaertl/vue-richtext',
	'@nextcloud/event-bus',
	'semver',
])

// Merge rules by replacing existing tests
module.exports = webpackConfig