mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
859ca504f8
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
25 lines
614 B
JavaScript
25 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],
|
|
}
|
|
}
|
|
}
|
|
];
|