Skip to content

Commit

Permalink
Merge pull request #4663 from marmelab/fix-dependency-alias-for-langu…
Browse files Browse the repository at this point in the history
…ages

[RFR] Fix Missing Dependency Aliases for Simple Example Languages
  • Loading branch information
fzaninotto committed Apr 8, 2020
2 parents 87249ad + 362820e commit 7d636e5
Showing 1 changed file with 16 additions and 30 deletions.
46 changes: 16 additions & 30 deletions examples/simple/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const IgnoreNotFoundExportPlugin = require('ignore-not-found-export-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin;

const packagesPath = [__dirname, '..', '..', 'packages'];

module.exports = {
devtool: 'cheap-module-source-map',
module: {
Expand Down Expand Up @@ -55,51 +57,35 @@ module.exports = {
resolve: {
extensions: ['.ts', '.js', '.tsx', '.json'],
alias: {
'ra-core': path.join(
__dirname,
'..',
'..',
'packages',
'ra-core',
'ra-core': path.join(...packagesPath, 'ra-core', 'src'),
'ra-language-french': path.join(
...packagesPath,
'ra-language-french',
'src'
),
'ra-ui-materialui': path.join(
__dirname,
'..',
'..',
'packages',
'ra-ui-materialui',
'ra-language-english': path.join(
...packagesPath,
'ra-language-english',
'src'
),
'react-admin': path.join(
__dirname,
'..',
'..',
'packages',
'react-admin',
'ra-ui-materialui': path.join(
...packagesPath,
'ra-ui-materialui',
'src'
),
'react-admin': path.join(...packagesPath, 'react-admin', 'src'),
'ra-data-fakerest': path.join(
__dirname,
'..',
'..',
'packages',
...packagesPath,
'ra-data-fakerest',
'src'
),
'ra-i18n-polyglot': path.join(
__dirname,
'..',
'..',
'packages',
...packagesPath,
'ra-i18n-polyglot',
'src'
),
'ra-input-rich-text': path.join(
__dirname,
'..',
'..',
'packages',
...packagesPath,
'ra-input-rich-text',
'src'
),
Expand Down

0 comments on commit 7d636e5

Please sign in to comment.