Rollup plugin to include SystemJS runtime in entry chunks.
npm i -D rollup-plugin-systemjs-loader
# or
yarn add -D rollup-plugin-systemjs-loader
import systemJSLoader from 'rollup-plugin-systemjs-loader';
export default {
input: 'index.js',
output: {
format: 'system',
dir: 'dist',
sourcemap: true
},
plugins: [
systemJSLoader({
include: [
require.resolve('systemjs/dist/s.js')
]
})
]
}
Type: String
Default: /
Base URL from which entry chunks must be imported.
Type: Array[...String]
Required
Array of file paths that must be included for loading SystemJS.