-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
More Preact X compat things™ #756
Conversation
@@ -92,8 +102,6 @@ | |||
"optimize-css-assets-webpack-plugin": "^5.0.1", | |||
"ora": "^3.0.0", | |||
"postcss-loader": "^3.0.0", | |||
"preact": "^8.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this break prerendering?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it shouldn't, as a peerDep it should resolve fine
@@ -6,7 +6,7 @@ const SizePlugin = require('size-plugin'); | |||
const autoprefixer = require('autoprefixer'); | |||
const requireRelative = require('require-relative'); | |||
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |||
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah. Will the fix still let this strip out the Webpack modules that have nothing in them? They should have no originalModule since they're not from an ESM source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should fix it, just commented it out for now, because it broke the tests
packages/cli/package.json
Outdated
"ejs-loader": "^0.3.0", | ||
"esm": "^3.2.7", | ||
"esm": "<=3.2.14", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
esm
v3.2.17 is released 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -61,11 +61,17 @@ module.exports = function(env) { | |||
let cliNodeModules = findAllNodeModules(__dirname); | |||
let nodeModules = [...new Set([...userNodeModules, ...cliNodeModules])]; | |||
|
|||
let compat = 'preact-compat'; | |||
try { | |||
requireRelative.resolve('preact/compat', cwd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we be trying to resolve this only to node_modules/preact/compat
? I think this will resolve to node_modules/preact/compat/dist/compat.js
.
No description provided.