Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #169 from zarathustra323/fix-webpack-build
Browse files Browse the repository at this point in the history
Fix Webpack builds by disabling fully specified files
  • Loading branch information
zarathustra323 authored Oct 12, 2021
2 parents f23ae4a + c2c7a06 commit e0fcc66
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/web-cli/src/gulp/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,23 @@ module.exports = cwd => (cb) => {
},
module: {
rules: [
{
test: /\.m?js/,
resolve: {
fullySpecified: false,
},
},
{
test: /\.vue$/,
loader: require.resolve('vue-loader'),
},
{
test: /\.m?js$/,
test: /\.js$/,
loader: require.resolve('babel-loader'),
exclude: file => (
/node_modules\/(?!@parameter1\/base-cms-marko-web.*?\/browser)/.test(file)
&& !/\.vue\.js/.test(file)
),
options: {
presets: [
[
Expand All @@ -74,7 +84,6 @@ module.exports = cwd => (cb) => {
useBuiltIns: 'usage',
corejs: '3.18',
debug: false,
modules: 'cjs',
},
],
],
Expand Down

0 comments on commit e0fcc66

Please sign in to comment.