Skip to content

Commit

Permalink
need to tell webpack to have looser module package rules (because of …
Browse files Browse the repository at this point in the history
…AMD interop with ember stuff), see: embroider-build/embroider#1101 (comment)
  • Loading branch information
NullVoxPopuli committed Feb 4, 2022
1 parent 125700f commit 9f81629
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions testing/ember-app/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,22 @@ module.exports = function (defaults) {
watchDependencies: [Object.keys(require('./package').dependencies)],
webpack: {
devtool: 'inline-source-map',
module: {
rules: [{ test: /\.(js|ts)$/, type: 'javascript/auto' }],
},
},
},
});

const { maybeEmbroider } = require('@embroider/test-setup');

return maybeEmbroider(app, {
packageRules: [
{
package: 'ember-app',
components: {
'{{toggle}}': { safeToIgnore: true },
'{{toggle-machine}}': { safeToIgnore: true },
'{{test-machine}}': { safeToIgnore: true },
'{{report}}': { safeToIgnore: true },
},
},
],
packagerOptions: {
webpackConfig: {
devtool: 'inline-source-map',
module: {
rules: [{ test: /\.(js|ts)$/, type: 'javascript/auto' }],
},
},
},
});
Expand Down

0 comments on commit 9f81629

Please sign in to comment.