⚠️ Use alias Rollup plugin to omit full imports
All checks were successful
continuous-integration/drone/push Build is passing

- Define entries (utils, animations, etc) in the Rollup config in order to omit the whole back path (../../) when importing a file
- Global revoleExtensions in the config (to avoid duplicates)
This commit is contained in:
2020-03-30 23:53:01 +02:00
parent 58adc052c4
commit 2dc51a167a
33 changed files with 150 additions and 115 deletions

17
pnpm-lock.yaml generated
View File

@@ -15,6 +15,7 @@ devDependencies:
'@babel/plugin-transform-runtime': 7.9.0_@babel+core@7.9.0
'@babel/preset-env': 7.9.0_@babel+core@7.9.0
'@babel/runtime': 7.9.2
'@rollup/plugin-alias': 3.0.1_rollup@2.3.0
'@rollup/plugin-commonjs': 11.0.2_rollup@2.3.0
'@rollup/plugin-node-resolve': 7.1.1_rollup@2.3.0
'@rollup/plugin-replace': 2.3.1_rollup@2.3.0
@@ -891,6 +892,15 @@ packages:
dev: false
resolution:
integrity: sha512-3NsZsJIA/22P3QUyrEDNA2D133H4j224twJrdipXN38dpnIOzAbUDtOwkcJ5pXmn75w7LSQDjA4tO9dm1XlqlA==
/@rollup/plugin-alias/3.0.1_rollup@2.3.0:
dependencies:
rollup: 2.3.0
slash: 3.0.0
dev: true
peerDependencies:
rollup: ^1.20.0
resolution:
integrity: sha512-ReSy6iPl3GsWLMNeshXAfgItZFMoMOTYC7MZQQM5va4pqxiGgwl1xZUZfHW6zGyZPK+k8TBadxx+kdmepiUa+g==
/@rollup/plugin-commonjs/11.0.2_rollup@2.3.0:
dependencies:
'@rollup/pluginutils': 3.0.8_rollup@2.3.0
@@ -3963,6 +3973,12 @@ packages:
node: '>= 6'
resolution:
integrity: sha512-dQbZnsMaIiTQPZmbGmktz+c74zt/hyrJEB4tdp2Jj0RNv9J6B/OWR5RyrZEvIn9fyh9Zlg2OlE2XzKz6wMKGAw==
/slash/3.0.0:
dev: true
engines:
node: '>=8'
resolution:
integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
/slice-ansi/2.1.0:
dependencies:
ansi-styles: 3.2.1
@@ -4515,6 +4531,7 @@ specifiers:
'@babel/plugin-transform-runtime': ^7.9.0
'@babel/preset-env': ^7.9.0
'@babel/runtime': ^7.9.2
'@rollup/plugin-alias': ^3.0.1
'@rollup/plugin-commonjs': ^11.0.2
'@rollup/plugin-node-resolve': ^7.1.1
'@rollup/plugin-replace': ^2.3.1