mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-07 21:52:26 +03:00
27 lines
611 B
JavaScript
27 lines
611 B
JavaScript
const path = require('path')
|
|
|
|
module.exports = require('jiti')(__filename, {
|
|
cache: false,
|
|
debug: false,
|
|
transformOptions: {
|
|
ts: true,
|
|
retainLines: true,
|
|
babel: {
|
|
plugins: [
|
|
[require('babel-plugin-global-define'), {
|
|
__DEV__: true,
|
|
__BROWSER__: false
|
|
}],
|
|
[require('babel-plugin-module-resolver'), {
|
|
root: '.',
|
|
extensions: ['.ts'],
|
|
alias: {
|
|
'^vue-meta$': path.resolve(__dirname, '../src/'),
|
|
'^vue-meta/ssr$': path.resolve(__dirname, '../src/ssr')
|
|
}
|
|
}]
|
|
]
|
|
}
|
|
}
|
|
})
|