mirror of
https://github.com/pnpm/pnpm.git
synced 2026-03-23 09:31:52 -04:00
19 lines
398 B
JavaScript
19 lines
398 B
JavaScript
const babelRegister = require('@babel/register')
|
|
const path = require('path')
|
|
|
|
const root = path.dirname(path.dirname(__dirname))
|
|
|
|
babelRegister({
|
|
root,
|
|
cwd: root,
|
|
extensions: ['.ts'],
|
|
presets: [
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-transform-modules-commonjs',
|
|
'@babel/plugin-proposal-dynamic-import',
|
|
require.resolve('./rewrite-imports.js')
|
|
]
|
|
})
|