mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-04-05 14:09:39 +00:00
Convert to ESM
This commit is contained in:
17
rollup.config.js
Normal file
17
rollup.config.js
Normal file
@ -0,0 +1,17 @@
|
||||
// See: https://rollupjs.org/introduction/
|
||||
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
||||
|
||||
const config = {
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
esModule: true,
|
||||
file: 'dist/index.js',
|
||||
format: 'es',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [commonjs(), nodeResolve()]
|
||||
}
|
||||
|
||||
export default config
|
Reference in New Issue
Block a user