Skip to content

Commit

Permalink
fix: resolve error for webpack 5 (#169)
Browse files Browse the repository at this point in the history
the error is:Should not import the named export 'version' (imported as 'version') from
default-exporting module (only default export is available soon)
  • Loading branch information
acarpe authored Dec 14, 2021
1 parent a28891a commit 5d79422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { version } from '../package.json'
import packageInfo from '../package.json'
import * as MorphCallbacks from './morph_callbacks'
import { shouldMorphCallbacks, didMorphCallbacks } from './morph_callbacks'
import * as Utils from './utils'
Expand All @@ -25,7 +25,7 @@ export default {
consumer,
addOperation,
addOperations,
version,
version: packageInfo.version,
get DOMOperations () {
console.warn(
'DEPRECATED: Please use `CableReady.operations` instead of `CableReady.DOMOperations`'
Expand Down

0 comments on commit 5d79422

Please sign in to comment.