angular/integration/platform-server/base-config.mjs
Paul Gschwendtner 859ca504f8 test: run platform-server integration test with v13 partial compilation packages (#43431)
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
2021-10-01 18:28:44 +00:00

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],
}
}
}
];