Open dcolley opened 2 years ago
We've not actively maintained this package for quite some time. See it in our "legacy" repo: https://github.com/open-wc/legacy/tree/master/packages/webpack-import-meta-loader
If you happened to find a fix that you felt made sense, feel free to open a PR, but we are not investing work in the package at this time.
Expected behavior
On Vue2, including the @open-wc/webpack-import-meta-loader as follows
Configure
vue.config.js
in src/App.vue
Build the project
Actual Behavior
I added a debug into node_modules/@open-wc/webpack-import-meta-loader.js
Line 19: console.log("webpack-import-meta-loader.js: rootContext", this.rootContext)
Additional context
I found when
this.rootContext
is undefined,this.options.context
was populated... ?!I don't know if this 'hack' is appropriate, but it stops the error... :/