fix(webpack): set module: true for swcMinify (#19213)
This commit is contained in:
parent
0ec1bddab4
commit
56481d6976
@ -25,8 +25,7 @@ describe('Web Components Applications', () => {
|
||||
beforeEach(() => newProject());
|
||||
afterEach(() => cleanupProject());
|
||||
|
||||
// TODO Re-enable this when it is passing.
|
||||
xit('should be able to generate a web app', async () => {
|
||||
it('should be able to generate a web app', async () => {
|
||||
const appName = uniq('app');
|
||||
runCLI(
|
||||
`generate @nx/web:app ${appName} --bundler=webpack --no-interactive`
|
||||
|
||||
@ -271,6 +271,7 @@ export function withNx(pluginOptions?: WithNxOptions): NxWebpackPlugin {
|
||||
minify: TerserPlugin.swcMinify,
|
||||
// `terserOptions` options will be passed to `swc`
|
||||
terserOptions: {
|
||||
module: true,
|
||||
mangle: false,
|
||||
},
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user