rolldown 1.0.3

Fast JavaScript bundler in Rust, designed for the future of Vite
Documentation
---
source: crates/rolldown_testing/src/integration_test.rs
---
# warnings

## EVAL

```text
[EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
   ╭─[ 2.js:1:28 ]
   │
 1 │ if (foo) { function x() {} eval('') }
   │                            ──┬─  
   │                              ╰─── Use of direct `eval` here.
   │ 
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───╯

```

## EVAL

```text
[EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
   ╭─[ 3.js:1:39 ]
   │
 1 │ if (foo) { function x() {} if (bar) { eval('') } }
   │                                       ──┬─  
   │                                         ╰─── Use of direct `eval` here.
   │ 
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───╯

```

## EVAL

```text
[EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
   ╭─[ 4.js:1:12 ]
   │
 1 │ if (foo) { eval(''); function x() {} }
   │            ──┬─  
   │              ╰─── Use of direct `eval` here.
   │ 
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───╯

```

## EVAL

```text
[EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
   ╭─[ 6.js:1:42 ]
   │
 1 │ 'use strict'; if (foo) { function x() {} eval('') }
   │                                          ──┬─  
   │                                            ╰─── Use of direct `eval` here.
   │ 
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───╯

```

## EVAL

```text
[EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
   ╭─[ 7.js:1:53 ]
   │
 1 │ 'use strict'; if (foo) { function x() {} if (bar) { eval('') } }
   │                                                     ──┬─  
   │                                                       ╰─── Use of direct `eval` here.
   │ 
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───╯

```

## EVAL

```text
[EVAL] Use of direct `eval` function is strongly discouraged as it poses security risks and may cause issues with minification.
   ╭─[ 8.js:1:26 ]
   │
 1 │ 'use strict'; if (foo) { eval(''); function x() {} }
   │                          ──┬─  
   │                            ╰─── Use of direct `eval` here.
   │ 
   │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───╯

```

# Assets

## 1.js

```js
//#region 1.js
if (foo) {}
//#endregion

```

## 2.js

```js
//#region 2.js
if (foo) {
	function x() {}
	eval("");
}
//#endregion

```

## 3.js

```js
//#region 3.js
if (foo) {
	function x() {}
	if (bar) eval("");
}
//#endregion

```

## 4.js

```js
//#region 4.js
if (foo) {
	eval("");
	function x() {}
}
//#endregion

```

## 5.js

```js
//#region 5.js
if (foo) {}
//#endregion

```

## 6.js

```js
//#region 6.js
if (foo) {
	function x() {}
	eval("");
}
//#endregion

```

## 7.js

```js
//#region 7.js
if (foo) {
	function x() {}
	if (bar) eval("");
}
//#endregion

```

## 8.js

```js
//#region 8.js
if (foo) {
	eval("");
	function x() {}
}
//#endregion

```