Skip to content

Commit c7bac80

Browse files
committed
minor cleanup and doc comment config
1 parent b82a82b commit c7bac80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vite.config.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default defineConfig({
1515
entry: {
1616
react: resolve(__dirname, 'js_src/index.mjs')
1717
},
18-
name: "initReact",
18+
name: "ReactBundle", // This doesn't do anything but is required.
1919
fileName: (format, entryName) => `${entryName}.${process.env.NODE_ENV == 'production' ? 'min' : 'dev'}.js`,
2020
formats: ['iife'],
2121
},
@@ -29,13 +29,12 @@ export default defineConfig({
2929
//
3030
// This line fakes any `require('redux')` calls, so that webpack will not include all of the `redux` code.
3131
'redux',
32-
'window'
3332
],
3433
output: {
3534
// Provide global variables to use in the UMD build
3635
// for externalized deps
3736
globals: {
38-
// see rollupOptions `external` comment for `redux`.
37+
// see comment in `rollupOptions.external` above for `redux`.
3938
redux: 'window.Object',
4039
},
4140
},

0 commit comments

Comments
 (0)