angular/integration/platform-server/base-config.mjs
Paul Gschwendtner ec7dd5d4c2 test: re-enable platform-server integration test (#44055)
Re-enables the platform-server integration test that we had
to disable when we landed the APF v13 changes.

We can re-enable it by setting up the `fullySpecified` option
similar to how the CLI does it.

PR Close #44055
2021-11-04 18:57:22 +00:00

28 lines
873 B
JavaScript

import {dirname} from 'path';
import {fileURLToPath} from 'url';
import linkerPlugin from '@angular/compiler-cli/linker/babel';
export const baseDir = dirname(fileURLToPath(import.meta.url));
export const moduleRules = [
{
test: /\.txt$/i,
use: 'raw-loader',
},
{
test: /\.m?js$/,
// Exclude Domino from being processed by Babel as Babel reports an error
// for invalid use of `with` in strict mode.
// https://github.com/fgnass/domino/issues/153.
exclude: /domino/,
// Workaround since Angular framework packages import from `rxjs` v6 which does
// have package exports yet: https://github.com/ReactiveX/rxjs/pull/6613.
// This is similar to what the CLI sets up internally.
resolve: {fullySpecified: false},
use: {
loader: 'babel-loader',
options: {
plugins: [linkerPlugin],
}
}
}
];