-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrollup.config.js
28 lines (22 loc) · 1.01 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import typescript from '@rollup/plugin-typescript';
import merge from 'deepmerge';
// use createSpaConfig for bundling a Single Page App
// import { createSpaConfig } from '@open-wc/building-rollup';
// use createBasicConfig to do regular JS to JS bundling
import { createBasicConfig } from '@open-wc/building-rollup';
const baseConfig = createBasicConfig({
// use the outputdir option to modify where files are output
// outputDir: 'dist',
// if you need to support older browsers, such as IE11, set the legacyBuild
// option to generate an additional build just for this browser
// legacyBuild: true,
// development mode creates a non-minified build for debugging or development
developmentMode: process.env.ROLLUP_WATCH === 'true',
// set to true to inject the service worker registration into your index.html
injectServiceWorker: false,
});
export default merge(baseConfig, {
input: './oscd-open.ts',
plugins: [typescript()],
output: { file: 'dist/oscd-open.js', sourcemap: true, dir: undefined },
});