-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrollup.config.js
More file actions
31 lines (28 loc) · 957 Bytes
/
rollup.config.js
File metadata and controls
31 lines (28 loc) · 957 Bytes
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
29
30
31
/* eslint-disable import/no-extraneous-dependencies */
import nodeResolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars';
import copy from 'rollup-plugin-copy'
import { importMetaAssets } from '@web/rollup-plugin-import-meta-assets';
export default {
input: './scl-wizarding.ts',
output: {
sourcemap: true, // Add source map to build output
format:'es', // ES module type export
dir: 'dist', // The build output folder
// preserveModules: true, // Keep directory structure and files
},
preserveEntrySignatures: 'strict', // leaves export of the plugin entry point
plugins: [
/** Resolve bare module imports */
nodeResolve(),
typescript(),
dynamicImportVars(),
importMetaAssets(),
copy({
targets: [
{ src: 'ace', dest: 'dist' },
]
})
],
};