Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sxzz/rspack-enforce-issue
https://github.com/sxzz/rspack-enforce-issue
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sxzz/rspack-enforce-issue
- Owner: sxzz
- Created: 2024-03-29T15:34:38.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-11T01:53:53.000Z (9 months ago)
- Last Synced: 2024-10-14T03:13:07.470Z (2 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.