mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-03-15 23:15:18 +08:00
28 lines
423 B
JavaScript
28 lines
423 B
JavaScript
import babel from '@rollup/plugin-babel';
|
|
|
|
export default {
|
|
input: 'src/index.js',
|
|
plugins: [
|
|
babel({
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
targets: {
|
|
node: 8,
|
|
},
|
|
modules: false,
|
|
},
|
|
],
|
|
],
|
|
configFile: false,
|
|
}),
|
|
],
|
|
output: [
|
|
{
|
|
file: 'dist/index.js',
|
|
format: 'cjs',
|
|
},
|
|
],
|
|
};
|