In the root of your project, add .gitlab-ci.yml
with the configuration below.
image: node:latest
stages:
Webpack 4 automatically polyfilled many Node APIs in the browser. This was not a great system, because it could lead to surprisingly giant libraries getting pulled into your app by accident, and it gave you no control over the exact versions of the polyfills you were using.
So Webpack 5 removed this functionality. That means you need to make changes if you were relying on those polyfills. This is a quick reference for how to replace the most common patterns.
For each automatically-polyfilled node package name on the left, this shows the name of the NPM package that was used to polyfill it on the right. Under webpack 5 you can manually install these packages and use them via resolve.fallback
.
#!/usr/bin/env bash | |
echo 'Adding Dell repository...' | |
# https://www.dell.com/community/XPS/XPS-13-9300-Does-fingerprint-reader-work-on-linux/td-p/7514958 | |
sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF | |
deb http://dell.archive.canonical.com/updates/ focal-dell public | |
# deb-src http://dell.archive.canonical.com/updates/ focal-dell public | |
deb http://dell.archive.canonical.com/updates/ focal-oem public | |
# deb-src http://dell.archive.canonical.com/updates/ focal-oem public |
/** | |
* Requires jsdoc and jsdoc-to-markdown | |
*/ | |
/* eslint-disable no-console */ | |
const fs = require('fs') | |
const path = require('path') | |
const glob = require('glob') | |
const { execSync } = require('child_process') | |
const jsdoc2md = require('jsdoc-to-markdown') |
import { enableProdMode } from "@angular/core"; | |
import { disableDebugTools } from "@angular/platform-browser"; | |
import { environment as defaultEnvironment } from "@app/web-env/environment"; | |
import { RUNTIME_CONFIG_KEY } from "@app/web-core"; | |
import { runtimeConfigLoader$ } from "@app/web-env/runtime-config-loader.fn"; | |
import { catchError, concatMap, delay, map, retryWhen, take } from "rxjs/operators"; | |
import { from, of, throwError } from "rxjs"; | |
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic"; | |
... |
Nx is a suite of powerful, extensible dev tools to help you architect, test, and build at any scale — integrating seamlessly with modern technologies and libraries while providing a robust CLI, caching, dependency management, and more.
It has first-class support for many frontend and backend technologies, so its documentation comes in multiple flavours.
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.// myModule.test.js
jest.mock('./myModule.js', () => (
{
...(jest.requireActual('./myModule.js')),
otherFn: jest.fn()
}
))
import { readFileSync } from 'fs'; | |
import { resolve } from 'path'; | |
const pkg = JSON.parse( | |
readFileSync(resolve(process.cwd(), 'package.json'), 'utf-8').toString(), | |
); | |
const DATE_FORMAT = 'DD-MM-YYYY-hh:mm:ss.SSS'; | |
const colors = { |