Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/rspack-enforce-issue.
Something went wrong. Try again.
Files
- JavaScript 83%
- HTML 13%
- Vue 4%
README.md
rspack enforce issue #
- Run
pnpm rspack build, then we can see the output
export default {
__name: 'App',
setup(__props) {
console.log('HelloWorld')
return { __sfc: true }
},
}
- Run
pnpm webpack build
<script setup>
console.log('HelloWorld')
</script>
<template>
<div id="app">hello</div>
</template>
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.