Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sxzz/rspack-enforce-issue


https://github.com/sxzz/rspack-enforce-issue

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# rspack `enforce` issue

- Run `pnpm rspack build`, then we can see the output

```js
export default {
__name: 'App',
setup(__props) {
console.log('HelloWorld')

return { __sfc: true }
},
}
```

- Run `pnpm webpack build`

```js

console.log('HelloWorld')

hello

```

They're different, but the configuration is the same.

If we remove the `enforce` option in `webpack.config.js`, the output will be the same. So the `enforce` option is not working as expected in Rspack.