File tree 2 files changed +7
-2
lines changed
packages/vite/src/node/plugins
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,9 @@ import { searchForWorkspaceRoot } from '..'
27
27
const debug = createDebugger ( 'vite:esbuild' )
28
28
29
29
const INJECT_HELPERS_IIFE_RE =
30
- / ( .* ) ( (?: c o n s t | v a r ) [ ^ \s ] + = f u n c t i o n \( [ ^ ) ] * ?\) { " u s e s t r i c t " ; ) ( .* ) /
30
+ / ( .* ) ( (?: c o n s t | v a r ) [ ^ \s ] + = f u n c t i o n \( [ ^ ) ] * ?\) { " u s e s t r i c t " ; ) ( .* ) / s
31
31
const INJECT_HELPERS_UMD_RE =
32
- / ( .* ) ( \( f u n c t i o n \( [ ^ ) ] * ?\) { .+ a m d .+ f u n c t i o n \( [ ^ ) ] * ?\) { " u s e s t r i c t " ; ) ( .* ) /
32
+ / ( .* ) ( \( f u n c t i o n \( [ ^ ) ] * ?\) { .+ a m d .+ f u n c t i o n \( [ ^ ) ] * ?\) { " u s e s t r i c t " ; ) ( .* ) / s
33
33
34
34
let server : ViteDevServer
35
35
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ const path = require('path')
6
6
*/
7
7
module . exports = {
8
8
build : {
9
+ rollupOptions : {
10
+ output : {
11
+ banner : `/*!\nMayLib\n*/`
12
+ }
13
+ } ,
9
14
lib : {
10
15
entry : path . resolve ( __dirname , 'src/main.js' ) ,
11
16
name : 'MyLib' ,
You can’t perform that action at this time.
0 commit comments