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 and marcoroth committed Jan 21, 2022
1 parent d13e342 commit 157af31
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 package from '../package.json'
import { perform, performAsync } from './cable_ready'
import { initialize } from './elements'
import { shouldMorphCallbacks, didMorphCallbacks } from './morph_callbacks'
Expand Down Expand Up @@ -28,7 +28,7 @@ export default {
initialize,
addOperation,
addOperations,
version,
version: package.version,
cable: CableConsumer,
get DOMOperations () {
console.warn(
Expand Down

0 comments on commit 157af31

Please sign in to comment.