From e645126d91e5a46cea2bf4a2b2a5badeb9c1a6cb Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 5 Apr 2022 14:40:53 +0200 Subject: [PATCH] build: add alias to babel config Signed-off-by: Max --- babel.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/babel.config.js b/babel.config.js index d45f27d7b0e..693fc56fd48 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,5 +1,15 @@ const babelConfig = require('@nextcloud/babel-config') +const resolvePlugin = ["module-resolver", { + "alias": { + "@nextcloud/text-editor": "./package", + } +}] + babelConfig.presets[0][1].modules = 'auto' +babelConfig.plugins = [ + ...babelConfig.plugins, + resolvePlugin, +] module.exports = babelConfig