Skip to content

alexander-schranz/build-error-reproducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A reproducer repository for the SULU CMS JS Setup

About admin/assets and vendor

The admin/assets/package.json and vendor/**/package.json can not be moved. So the challange is that the admin/assets should behave like it's the project root configuration. Each module in vendor should be possible to define it babel plugins. E.g.: if a project uses flow it should add the flow plugin to the .babelrc file of its project.

Building

cd assets/admin
npm install
npm run build

Currently will errors with:

Error: Cannot find module '@babel/plugin-proposal-decorators'

It seems to look for the babel plugin in a node_modules of vendor instead of keep the resolve config of our webpack.config.js in mind:

        resolve: {
            modules: ['node_modules', nodeModulesPath],
        },
        resolveLoader: {
            modules: ['node_modules', nodeModulesPath],
        },

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published