Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add compiler to carmi cache key #308

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bin/carmi
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ async function run() {
debug: options.debug,
format: options.format,
prettier: options.prettier,
name: options.name
name: options.name,
compiler: options.compiler || 'optimizing'
})

const statsExists = fs.existsSync(statsFilePath)
Expand Down Expand Up @@ -119,7 +120,8 @@ async function run() {
format: options.format,
prettier: options.prettier,
dependenciesHashes,
name: options.name
name: options.name,
compiler: options.compiler || 'optimizing'
});

let code;
Expand Down
1 change: 1 addition & 0 deletions loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function CarmiLoader(loader) {
path: options.source,
debug: options.debug,
format: options.format,
compiler: options.compiler || 'optimizing',
name: 'model'
});

Expand Down