From f106732a2e98102c1f67c466164de1b79ce5d250 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 16 Jun 2018 13:51:04 +0930 Subject: [PATCH] Remove support for non-relative-path modules within a package --- js-packages/webpack-config/index.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/js-packages/webpack-config/index.js b/js-packages/webpack-config/index.js index 845a480d5..fb33a788c 100644 --- a/js-packages/webpack-config/index.js +++ b/js-packages/webpack-config/index.js @@ -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',