SoonIter / rspack-enforce-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:JavaScript 79.0%Language:HTML 15.8%Language:Vue 5.2%