Skip to content

Commit d4eafe5

Browse files
clydinfilipesilva
authored andcommitted
test: workaround rxjs 6 directory imports in direct Webpack E2E test
rxjs 6 requires directory imports which are not support in ES modules. Disabling `fullySpecified` allows Webpack to ignore cases such as this until the package can be updated to use package exports.
1 parent e1b954d commit d4eafe5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/legacy-cli/e2e/assets/webpack/test-app/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ module.exports = {
1414
plugins: [new ngToolsWebpack.AngularWebpackPlugin()],
1515
module: {
1616
rules: [
17+
// rxjs 6 requires directory imports which are not support in ES modules.
18+
// Disabling `fullySpecified` allows Webpack to ignore this but this is
19+
// not ideal because it currently disables ESM behavior import for all JS files.
20+
{ test: /\.[m]?js$/, resolve: { fullySpecified: false } },
1721
{ test: /\.scss$/, use: ['sass-loader'], type: 'asset/source' },
1822
{ test: /\.html$/, type: 'asset/source' },
1923
{ test: /\.ts$/, loader: ngToolsWebpack.AngularWebpackLoaderPath },

0 commit comments

Comments
 (0)