mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
Remove support for non-relative-path modules within a package
This commit is contained in:
parent
3c98e8e863
commit
f106732a2e
@ -46,19 +46,6 @@ module.exports = function(options = {}) {
|
||||
path: path.resolve(process.cwd(), 'js')
|
||||
},
|
||||
|
||||
// For backwards compatibility, search for non-relative-path modules
|
||||
// in the source directories. Also make sure the root node_modules
|
||||
// directory is searched.
|
||||
resolve: {
|
||||
modules: [
|
||||
path.resolve(process.cwd(), 'js/forum'),
|
||||
path.resolve(process.cwd(), 'js/admin'),
|
||||
path.resolve(process.cwd(), 'js/common'),
|
||||
path.resolve(process.cwd(), 'node_modules'),
|
||||
'node_modules'
|
||||
]
|
||||
},
|
||||
|
||||
externals: [
|
||||
{
|
||||
'@flarum/core/forum': 'flarum',
|
||||
|
Loading…
x
Reference in New Issue
Block a user