Skip to content

Commit

Permalink
Merge pull request #18 from embroider-build/new-config
Browse files Browse the repository at this point in the history
add new config structure
  • Loading branch information
mansona authored May 31, 2024
2 parents d105f48 + 88d7393 commit 2ec2a8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export default [
files: ['**/*.js'],
languageOptions: { sourceType: 'commonjs' },
},
{
files: ['files/app/**/*.js'],
languageOptions: { sourceType: 'module' },
},
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
eslintPluginPrettierRecommended,
Expand Down
3 changes: 3 additions & 0 deletions files/app/config/environment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import loadConfigFromMeta from '@embroider/config-meta-loader';

export default loadConfigFromMeta('<%= name %>');
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module.exports = {
'@embroider/vite@unstable',
'@embroider/compat@unstable',
'@embroider/test-setup@unstable',
'@embroider/config-meta-loader@unstable',
'vite',
'@rollup/plugin-babel',
],
Expand Down

0 comments on commit 2ec2a8d

Please sign in to comment.