Skip to content

Commit

Permalink
Chore: Try to add types to the Rollup Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn committed Dec 6, 2023
1 parent 48e6d16 commit c9c1e84
Show file tree
Hide file tree
Showing 11 changed files with 8,722 additions and 21 deletions.
2 changes: 1 addition & 1 deletion apps/rollup-example/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
file: './.build/bundle.js',
format: 'es',
},
plugins: [stylexPlugin({ fileName: 'stylex.css' })],
plugins: [stylexPlugin.default({ fileName: 'stylex.css' })],
};

export default config;
16 changes: 16 additions & 0 deletions packages/rollup-plugin/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"assumptions": {
"iterableIsArray": true
},
"presets": [
["@babel/preset-env", {
"exclude": [
"@babel/plugin-transform-typeof-symbol"
],
"targets": "defaults"
}],
"@babel/preset-flow"
],
"plugins": [["babel-plugin-syntax-hermes-parser", {"flow": "detect"}]]
}

2 changes: 1 addition & 1 deletion packages/rollup-plugin/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const rollup = require('rollup');
const { babel } = require('@rollup/plugin-babel');
const commonjs = require('@rollup/plugin-commonjs');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const stylexPlugin = require('../src/index');
const stylexPlugin = require('../src/index').default;

describe('rollup-plugin-stylex', () => {
async function runStylex(options) {
Expand Down
Loading

0 comments on commit c9c1e84

Please sign in to comment.