You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current release build process generates a compiled file that works fine, but if imported via webpack (or mix) causes a warning like this to be thrown on build:
WARNING in ./node_modules/@murmurcreative/drawer/dist/index.js 1:292-296
Critical dependency: the request of a dependency is an expression
@ ./resources/assets/scripts/modules/primary-nav.js
@ ./resources/assets/scripts/app.js
@ multi ./resources/assets/scripts/app.js ./resources/assets/styles/app.css ./resources/assets/styles/editor.css
This error seems to be a result of how Parcel compiles things down to a single file, using it's own require functionality, which webpack then complains about.
So far as I can tell this has no negative effects (beyond throwing this error) but the intent for this package is for it to be simple, easy, and understandable, and arcane errors are counter to those goals.
Potential solutions:
Don't use parcel to build
Don't worry about compiling into a single file
Since I'd like to generate a single artifact people can import and then go, I'm leaning toward option 1, much as I like Parcel.
The text was updated successfully, but these errors were encountered:
The current release build process generates a compiled file that works fine, but if imported via webpack (or mix) causes a warning like this to be thrown on build:
This error seems to be a result of how Parcel compiles things down to a single file, using it's own
require
functionality, which webpack then complains about.So far as I can tell this has no negative effects (beyond throwing this error) but the intent for this package is for it to be simple, easy, and understandable, and arcane errors are counter to those goals.
Potential solutions:
Since I'd like to generate a single artifact people can import and then go, I'm leaning toward option 1, much as I like Parcel.
The text was updated successfully, but these errors were encountered: