Skip to content
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

Merged
merged 8 commits into from
Mar 15, 2019
Merged

More Preact X compat things™ #756

merged 8 commits into from
Mar 15, 2019

Conversation

ForsakenHarmony
Copy link
Member

No description provided.

@ForsakenHarmony ForsakenHarmony requested review from lukeed and developit and removed request for lukeed March 11, 2019 22:43
@@ -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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this break prerendering?

Copy link
Member Author

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');
Copy link
Member

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?

Copy link
Member Author

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

"ejs-loader": "^0.3.0",
"esm": "^3.2.7",
"esm": "<=3.2.14",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

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 🎉

Copy link
Member

@prateekbh prateekbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ForsakenHarmony ForsakenHarmony merged commit 197bad5 into next Mar 15, 2019
@@ -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);
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants