Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
18 lines
656 B
JavaScript
18 lines
656 B
JavaScript
const path = require('path');
|
|
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
|
|
|
const extensions = ['.js', '.mjs', '.ts', '.tsx'];
|
|
|
|
// WARNING: Use this module only as an inspiration.
|
|
// Cherry-pick the parts you need and inline them in the webpack.config you need.
|
|
// This module isn't used to build the documentation. We use Next.js for that.
|
|
// This module is used by the visual regression tests to run the demos and by eslint-plugin-import.
|
|
module.exports = {
|
|
context: path.resolve(__dirname),
|
|
resolve: {
|
|
modules: [__dirname, 'node_modules'],
|
|
extensions,
|
|
plugins: [new TsconfigPathsPlugin({ extensions })],
|
|
},
|
|
};
|