mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-01 13:03:23 +08:00
Use babel relative import path
This commit is contained in:
@@ -43,7 +43,20 @@ function scripts(src, dest) {
|
||||
return () => {
|
||||
return browserify(src)
|
||||
.transform('babelify', {
|
||||
presets: [['@babel/preset-env']]
|
||||
presets: [['@babel/preset-env']],
|
||||
plugins: [
|
||||
[
|
||||
'babel-plugin-relative-path-import',
|
||||
{
|
||||
paths: [
|
||||
{
|
||||
'rootPathPrefix': '@',
|
||||
'rootPathSuffix': 'src',
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
]
|
||||
})
|
||||
.plugin('tinyify')
|
||||
.bundle()
|
||||
|
||||
Reference in New Issue
Block a user