Skip to content

Commit

Permalink
build: add alias to babel config
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Apr 5, 2022
1 parent 265c2c1 commit e645126
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e645126

Please sign in to comment.