mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
28 lines
873 B
JavaScript
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],
|
|
}
|
|
}
|
|
}
|
|
];
|