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 9e808fd
Show file tree
Hide file tree
Showing 3 changed files with 221 additions and 3 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
213 changes: 210 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"@vue/test-utils": "^1.3.0",
"@vue/vue2-jest": "^27.0.0-alpha.4",
"babel-core": "^7.0.0-bridge.0",
"babel-plugin-module-resolver": "^4.1.0",
"cypress": "^9.5.3",
"cypress-file-upload": "^5.0.8",
"eslint-import-resolver-webpack": "^0.13.2",
Expand Down

0 comments on commit 9e808fd

Please sign in to comment.