mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Updates the platform-server integration test to rely on the v13 partial compilation packages. This involves setting up the Babel linker plugin. This is a great addition for coverage of the Babel linker plugin. PR Close #43431
24 lines
614 B
JavaScript
24 lines
614 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/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
plugins: [linkerPlugin],
|
|
}
|
|
}
|
|
}
|
|
];
|