Skip to content

Commit cf0e794

Browse files
committed
build cleanup
1 parent ba06106 commit cf0e794

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

demos/svelte-demo/rollup.config.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
input: 'src/main.js',
4040
output: {
4141
sourcemap: true,
42-
format: 'iife', // IIFE format works well in the browser context
42+
format: 'iife',
4343
name: 'app',
4444
file: 'public/build/bundle.js',
4545
},
@@ -57,7 +57,7 @@ export default {
5757
}),
5858

5959
commonjs({
60-
include: 'node_modules/**', // Ensure CommonJS modules are properly handled
60+
include: 'node_modules/**',
6161
sourceMap: !production,
6262
}),
6363

@@ -67,22 +67,16 @@ export default {
6767
]
6868
}),
6969

70-
// typescript({
71-
// include: ['src/**/*', 'node_modules/@notemine/wrapper/dist/**/*'],
72-
// }),
7370

74-
wasm(), // Handle WASM files
71+
wasm(),
7572

76-
// Add PostCSS for CSS handling
7773
postcss({
7874
extract: true,
7975
}),
8076

81-
// Auto-reload in development mode
8277
!production && serve(),
8378
!production && livereload('public'),
8479

85-
// Minify for production
8680
production && terser(),
8781
],
8882

0 commit comments

Comments
 (0)