mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
When hard-coding content in a `<code-example>` tag inside an `.md` file, the content is treated as HTML by the Markdown processor and thus any characters with special meaning in HTML have to be encoded (or replaced with HTML entities). However, the content that is embedded into `<code-example>` tags via docregions is treated as text (since it is not parsed by the Markdown processor) and thus should not have encoded characters or HTML entities. PR Close #45820
26 lines
560 B
JavaScript
26 lines
560 B
JavaScript
// #docplaster ...
|
|
// #docregion webpack-config
|
|
import linkerPlugin from '@angular/compiler-cli/linker/babel';
|
|
|
|
export default {
|
|
// #enddocregion webpack-config
|
|
// #docregion webpack-config
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.m?js$/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
plugins: [linkerPlugin],
|
|
compact: false,
|
|
cacheDirectory: true,
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
// #enddocregion webpack-config
|
|
// #docregion webpack-config
|
|
}
|
|
// #enddocregion webpack-config
|