Skip to content

Commit

Permalink
Merge pull request #51 from aserto-dev/rollup
Browse files Browse the repository at this point in the history
fix build with rollup
  • Loading branch information
gimmyxd authored Nov 7, 2024
2 parents 932af09 + b731393 commit ac9dcac
Show file tree
Hide file tree
Showing 3 changed files with 1,214 additions and 1,292 deletions.
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,21 @@
"author": "Aserto",
"license": "Apache-2.0",
"devDependencies": {
"@aserto/ts-linting-configs": "^2.7.0",
"@babel/cli": "^7.16.8",
"@babel/core": "^7.16.7",
"@aserto/ts-linting-configs": "^3.0.1",
"@babel/cli": "^7.25.9",
"@babel/core": "^7.26.0",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.16.8",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^13.1.3",
"cross-env": "7.0.3",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"rollup": "^2.63.0",
"typescript": "^4.5.4"
"rollup": "^2.79.2",
"typescript": "^4.9.0"
},
"prettier": "@aserto/ts-linting-configs/prettier.config"
"prettier": "@aserto/ts-linting-configs/prettier.config",
"packageManager": "[email protected]+sha512.ff4579ab459bb25aa7c0ff75b62acebe576f6084b36aa842971cf250a5d8c6cd3bc9420b22ce63c7f93a0857bc6ef29291db39c3e7a23aab5adfd5a4dd6c5d71"
}
11 changes: 9 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import babel from '@rollup/plugin-babel'
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'


const extensions = ['.ts', '.tsx']

Expand All @@ -8,14 +10,19 @@ const config = {
output: {
dir: 'dist',
format: 'cjs',
exports: 'auto',
exports: 'named',
},

plugins: [
resolve({ extensions }),
babel({
babelHelpers: 'bundled',
babelHelpers: 'runtime',
extensions,
plugins: [
"@babel/plugin-transform-runtime"
]
}),
commonjs({ include: 'node_modules/**' }),
],
}

Expand Down
Loading

0 comments on commit ac9dcac

Please sign in to comment.