We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935caee commit cd95654Copy full SHA for cd95654
rollup.config.js
@@ -99,12 +99,20 @@ export default [
99
json(),
100
ts_plugin
101
],
102
- output: {
103
- file: 'compiler.js',
104
- format: is_publish ? 'umd' : 'cjs',
105
- name: 'svelte',
106
- sourcemap: true,
107
- },
+ output: [
+ {
+ file: 'compiler.js',
+ format: is_publish ? 'umd' : 'cjs',
+ name: 'svelte',
+ sourcemap: true,
108
+ },
109
110
+ file: 'compiler.mjs',
111
+ format: 'esm',
112
113
114
+ }
115
+ ],
116
external: is_publish
117
? []
118
: id => id === 'acorn' || id === 'magic-string' || id.startsWith('css-tree')
0 commit comments